#6042E2#6042E2

#6042E2 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.5% C 0.228 H 283.6°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#6042E2
RGBrgb(96, 66, 226)
HSLhsl(251, 73%, 57%)
HSVhsv(251, 71%, 89%)
CMYKcmyk(57.5%, 70.8%, 0%, 11.4%)
CIE-LABlab(41.01, 54.08, -76.87)
CIE-LCHlch(41.01, 93.98, 305.13°)
OKLaboklab(51.51% 0.0534 -0.2214)
OKLCHoklch(51.51% 0.228 283.6)
XYZxyz(20.4953, 11.8729, 73.1485)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6042E2 #C4E242
analogous
#4274E2 #6042E2 #B042E2
triadic
#6042E2 #E26042 #42E260
tetradic
#6042E2 #E24274 #C4E242 #42E2B0
square
#6042E2 #E24274 #C4E242 #42E2B0
split-complementary
#6042E2 #E2B042 #74E242
monochromatic
#2E1793 #3E1FC8 #6042E2 #8D77EA #B9ACF2

Accessibility & contrast

On white

6.22
#6042E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#6042E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6042E2
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6042E2#FFFFFF#000000##FFFFFF
##6042E21.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E7
Deuteranopia (green-blind)
#005BDF
Tritanopia (blue-blind)
#136D8E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6042e2;
/* rgb */ color: rgb(96, 66, 226);
/* oklch */ color: oklch(51.5% 0.228 283.6);
Tailwind
colors: {
  custom: {
    50: '#9a79ec',
    500: '#6042e2',
    950: '#000000',
  },
}
SCSS
$custom: #6042e2;
$custom-light: #9a79ec;
$custom-dark: #000000;
JSON
{
  "hex": "#6042e2",
  "rgb": {
    "r": 96,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 251.25,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.5151,
    "c": 0.22773,
    "h": 283.6
  },
  "luminance": 0.11874
}

Semantic roles & 50–950 ramp

primary
#6042E2
secondary
#D4E09F
accent
#F038CE
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6042E2

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

Preview Lab → · Contrast checker → · Palette generator →

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