#6042E7#6042E7

#6042E7 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.0% C 0.234 H 283.0°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#6042E7
RGBrgb(96, 66, 231)
HSLhsl(251, 77%, 58%)
HSVhsv(251, 71%, 91%)
CMYKcmyk(58.4%, 71.4%, 0%, 9.4%)
CIE-LABlab(41.46, 55.53, -78.98)
CIE-LCHlch(41.46, 96.55, 305.11°)
OKLaboklab(51.96% 0.0524 -0.2276)
OKLCHoklch(51.96% 0.234 283)
XYZxyz(21.1914, 12.1513, 76.8146)
Luminance0.1215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6042E7 #C9E742
analogous
#4276E7 #6042E7 #B242E7
triadic
#6042E7 #E76042 #42E760
tetradic
#6042E7 #E74276 #C9E742 #42E7B2
square
#6042E7 #E74276 #C9E742 #42E7B2
split-complementary
#6042E7 #E7B242 #76E742
monochromatic
#2C149B #3C1BD1 #6042E7 #8E78EE #BBAFF5

Accessibility & contrast

On white

6.12
#6042E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#6042E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6042E7
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6042E7#FFFFFF#000000##FFFFFF
##6042E71.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067EC
Deuteranopia (green-blind)
#005CE4
Tritanopia (blue-blind)
#006F91
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6042e7;
/* rgb */ color: rgb(96, 66, 231);
/* oklch */ color: oklch(52.0% 0.234 283.0);
Tailwind
colors: {
  custom: {
    50: '#9b79f0',
    500: '#6042e7',
    950: '#000000',
  },
}
SCSS
$custom: #6042e7;
$custom-light: #9b79f0;
$custom-dark: #000000;
JSON
{
  "hex": "#6042e7",
  "rgb": {
    "r": 96,
    "g": 66,
    "b": 231
  },
  "hsl": {
    "h": 250.909,
    "s": 77.465,
    "l": 58.235
  },
  "oklch": {
    "l": 0.51959,
    "c": 0.23352,
    "h": 283
  },
  "luminance": 0.12153
}

Semantic roles & 50–950 ramp

primary
#6042E7
secondary
#D7E3A2
accent
#F434D1
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6042E7

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

Preview Lab → · Contrast checker → · Palette generator →

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