#6042EA#6042EA

#6042EA is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.2% C 0.237 H 282.6°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#6042EA
RGBrgb(96, 66, 234)
HSLhsl(251, 80%, 59%)
HSVhsv(251, 72%, 92%)
CMYKcmyk(59%, 71.8%, 0%, 8.2%)
CIE-LABlab(41.72, 56.40, -80.24)
CIE-LCHlch(41.72, 98.08, 305.10°)
OKLaboklab(52.23% 0.0518 -0.2313)
OKLCHoklch(52.23% 0.237 282.6)
XYZxyz(21.6188, 12.3223, 79.0652)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6042EA #CCEA42
analogous
#4278EA #6042EA #B442EA
triadic
#6042EA #EA6042 #42EA60
tetradic
#6042EA #EA4278 #CCEA42 #42EAB4
square
#6042EA #EA4278 #CCEA42 #42EAB4
split-complementary
#6042EA #EAB442 #78EA42
monochromatic
#2B12A0 #3A18D7 #6042EA #8E79F0 #BDB0F6

Accessibility & contrast

On white

6.06
#6042EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#6042EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6042EA
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6042EA#FFFFFF#000000##FFFFFF
##6042EA1.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EF
Deuteranopia (green-blind)
#005DE7
Tritanopia (blue-blind)
#007092
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6042ea;
/* rgb */ color: rgb(96, 66, 234);
/* oklch */ color: oklch(52.2% 0.237 282.6);
Tailwind
colors: {
  custom: {
    50: '#9c7af2',
    500: '#6042ea',
    950: '#000000',
  },
}
SCSS
$custom: #6042ea;
$custom-light: #9c7af2;
$custom-dark: #000000;
JSON
{
  "hex": "#6042ea",
  "rgb": {
    "r": 96,
    "g": 66,
    "b": 234
  },
  "hsl": {
    "h": 250.714,
    "s": 80,
    "l": 58.824
  },
  "oklch": {
    "l": 0.52231,
    "c": 0.23699,
    "h": 282.6
  },
  "luminance": 0.12324
}

Semantic roles & 50–950 ramp

primary
#6042EA
secondary
#D9E5A3
accent
#F631D3
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6042EA

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#6042EA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva