#6042D8#6042D8

#6042D8 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.6% C 0.216 H 284.8°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#6042D8
RGBrgb(96, 66, 216)
HSLhsl(252, 66%, 55%)
HSVhsv(252, 69%, 85%)
CMYKcmyk(55.6%, 69.4%, 0%, 15.3%)
CIE-LABlab(40.15, 51.17, -72.57)
CIE-LCHlch(40.15, 88.80, 305.19°)
OKLaboklab(50.63% 0.0553 -0.2088)
OKLCHoklch(50.63% 0.216 284.8)
XYZxyz(19.1630, 11.3400, 66.1315)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6042D8 #BAD842
analogous
#426FD8 #6042D8 #AB42D8
triadic
#6042D8 #D86042 #42D860
tetradic
#6042D8 #D8426F #BAD842 #42D8AB
square
#6042D8 #D8426F #BAD842 #42D8AB
split-complementary
#6042D8 #D8AB42 #6FD842
monochromatic
#301B84 #4326B7 #6042D8 #8B75E2 #B5A7ED

Accessibility & contrast

On white

6.43
#6042D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#6042D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6042D8
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6042D8#FFFFFF#000000##FFFFFF
##6042D81.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DC
Deuteranopia (green-blind)
#005AD5
Tritanopia (blue-blind)
#276A88
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6042d8;
/* rgb */ color: rgb(96, 66, 216);
/* oklch */ color: oklch(50.6% 0.216 284.8);
Tailwind
colors: {
  custom: {
    50: '#9979e5',
    500: '#6042d8',
    950: '#000000',
  },
}
SCSS
$custom: #6042d8;
$custom-light: #9979e5;
$custom-dark: #000000;
JSON
{
  "hex": "#6042d8",
  "rgb": {
    "r": 96,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 252,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.50628,
    "c": 0.21598,
    "h": 284.8
  },
  "luminance": 0.11341
}

Semantic roles & 50–950 ramp

primary
#6042D8
secondary
#CEDA9C
accent
#E93FC7
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6042D8

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

Preview Lab → · Contrast checker → · Palette generator →

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