#6042E1#6042E1

#6042E1 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.4% C 0.227 H 283.7°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#6042E1
RGBrgb(96, 66, 225)
HSLhsl(251, 73%, 57%)
HSVhsv(251, 71%, 88%)
CMYKcmyk(57.3%, 70.7%, 0%, 11.8%)
CIE-LABlab(40.93, 53.79, -76.44)
CIE-LCHlch(40.93, 93.47, 305.13°)
OKLaboklab(51.42% 0.0536 -0.2201)
OKLCHoklch(51.42% 0.227 283.7)
XYZxyz(20.3585, 11.8182, 72.4279)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6042E1 #C3E142
analogous
#4273E1 #6042E1 #B042E1
triadic
#6042E1 #E16042 #42E160
tetradic
#6042E1 #E14273 #C3E142 #42E1B0
square
#6042E1 #E14273 #C3E142 #42E1B0
split-complementary
#6042E1 #E1B042 #73E142
monochromatic
#2E1792 #3F1FC6 #6042E1 #8C77E9 #B9ACF2

Accessibility & contrast

On white

6.24
#6042E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#6042E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6042E1
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6042E1#FFFFFF#000000##FFFFFF
##6042E11.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E6
Deuteranopia (green-blind)
#005BDE
Tritanopia (blue-blind)
#166D8D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6042e1;
/* rgb */ color: rgb(96, 66, 225);
/* oklch */ color: oklch(51.4% 0.227 283.7);
Tailwind
colors: {
  custom: {
    50: '#9a79ec',
    500: '#6042e1',
    950: '#000000',
  },
}
SCSS
$custom: #6042e1;
$custom-light: #9a79ec;
$custom-dark: #000000;
JSON
{
  "hex": "#6042e1",
  "rgb": {
    "r": 96,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 251.321,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51421,
    "c": 0.22656,
    "h": 283.7
  },
  "luminance": 0.11819
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6042E1

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

Preview Lab → · Contrast checker → · Palette generator →

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