#7E42B0 CSS Color Code

#7E42B0

Color Values & Formats

Using is just one of many ways to represent this color in CSS. Below are the various color codes you can use:

HEX
#7e42b0
HEX Upper
#7E42B0
RGB
rgb(126, 66, 176)
RGBA
rgba(126, 66, 176, 1)
HSL
hsl(273, 45%, 47%)
HSLA
hsla(273, 45%, 47%, 1)
HWB
hwb(273 26% 31%)
CIELAB
lab(40.36 46.26 -48.78)
CIELCH
lch(40.36 67.23 313.48)
OKLab
oklab(0.506 0.101 -0.138)
OKLCH
oklch(0.506 0.171 306.33)

UI Component Preview

See how this color behaves when used as text, background, or outline borders in a user interface.

On White Background

Legibility Test

Five crazy hex codes quickly mixed bright aqua text for web layout pages.

On Dark Background

Legibility Test

Five crazy hex codes quickly mixed bright aqua text for web layout pages.

Interactive Buttons
Border & Stroke
Border Example

Tints

Lighter variations generated by blending the color with white (#ffffff).

Shades

Darker variations generated by blending the color with black (#000000).

Complementary Color

The color directly opposite on the HSL color wheel (shifted 180°).