#6042DE#6042DE

#6042DE is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.2% C 0.223 H 284.1°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#6042DE
RGBrgb(96, 66, 222)
HSLhsl(252, 70%, 56%)
HSVhsv(252, 70%, 87%)
CMYKcmyk(56.8%, 70.3%, 0%, 12.9%)
CIE-LABlab(40.66, 52.92, -75.16)
CIE-LCHlch(40.66, 91.92, 305.15°)
OKLaboklab(51.15% 0.0542 -0.2164)
OKLCHoklch(51.15% 0.223 284.1)
XYZxyz(19.9529, 11.6559, 70.2915)
Luminance0.1166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6042DE #C0DE42
analogous
#4272DE #6042DE #AE42DE
triadic
#6042DE #DE6042 #42DE60
tetradic
#6042DE #DE4272 #C0DE42 #42DEAE
square
#6042DE #DE4272 #C0DE42 #42DEAE
split-complementary
#6042DE #DEAE42 #72DE42
monochromatic
#2F198D #4022C1 #6042DE #8C76E7 #B8AAF0

Accessibility & contrast

On white

6.30
#6042DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#6042DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6042DE
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6042DE#FFFFFF#000000##FFFFFF
##6042DE1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E3
Deuteranopia (green-blind)
#005BDB
Tritanopia (blue-blind)
#1D6C8B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6042de;
/* rgb */ color: rgb(96, 66, 222);
/* oklch */ color: oklch(51.2% 0.223 284.1);
Tailwind
colors: {
  custom: {
    50: '#9a79e9',
    500: '#6042de',
    950: '#000000',
  },
}
SCSS
$custom: #6042de;
$custom-light: #9a79e9;
$custom-dark: #000000;
JSON
{
  "hex": "#6042de",
  "rgb": {
    "r": 96,
    "g": 66,
    "b": 222
  },
  "hsl": {
    "h": 251.538,
    "s": 70.27,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51155,
    "c": 0.22305,
    "h": 284.1
  },
  "luminance": 0.11657
}

Semantic roles & 50–950 ramp

primary
#6042DE
secondary
#D2DE9E
accent
#ED3BCB
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6042DE

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

Preview Lab → · Contrast checker → · Palette generator →

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