#6042D9#6042D9

#6042D9 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.7% C 0.217 H 284.7°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#6042D9
RGBrgb(96, 66, 217)
HSLhsl(252, 67%, 55%)
HSVhsv(252, 70%, 85%)
CMYKcmyk(55.8%, 69.6%, 0%, 14.9%)
CIE-LABlab(40.23, 51.47, -73.00)
CIE-LCHlch(40.23, 89.32, 305.18°)
OKLaboklab(50.72% 0.0551 -0.2101)
OKLCHoklch(50.72% 0.217 284.7)
XYZxyz(19.2927, 11.3918, 66.8144)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6042D9 #BBD942
analogous
#426FD9 #6042D9 #AC42D9
triadic
#6042D9 #D96042 #42D960
tetradic
#6042D9 #D9426F #BBD942 #42D9AC
square
#6042D9 #D9426F #BBD942 #42D9AC
split-complementary
#6042D9 #D9AC42 #6FD942
monochromatic
#301B86 #4225B9 #6042D9 #8B75E3 #B6A8ED

Accessibility & contrast

On white

6.41
#6042D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#6042D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6042D9
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6042D9#FFFFFF#000000##FFFFFF
##6042D91.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DE
Deuteranopia (green-blind)
#005AD6
Tritanopia (blue-blind)
#256A89
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6042d9;
/* rgb */ color: rgb(96, 66, 217);
/* oklch */ color: oklch(50.7% 0.217 284.7);
Tailwind
colors: {
  custom: {
    50: '#9979e6',
    500: '#6042d9',
    950: '#000000',
  },
}
SCSS
$custom: #6042d9;
$custom-light: #9979e6;
$custom-dark: #000000;
JSON
{
  "hex": "#6042d9",
  "rgb": {
    "r": 96,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 251.921,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.50715,
    "c": 0.21716,
    "h": 284.7
  },
  "luminance": 0.11393
}

Semantic roles & 50–950 ramp

primary
#6042D9
secondary
#CEDB9C
accent
#E93EC7
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6042D9

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

Preview Lab → · Contrast checker → · Palette generator →

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