#6042DF#6042DF

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

Color values

HEX#6042DF
RGBrgb(96, 66, 223)
HSLhsl(251, 71%, 57%)
HSVhsv(251, 70%, 87%)
CMYKcmyk(57%, 70.4%, 0%, 12.5%)
CIE-LABlab(40.75, 53.21, -75.59)
CIE-LCHlch(40.75, 92.44, 305.15°)
OKLaboklab(51.24% 0.054 -0.2176)
OKLCHoklch(51.24% 0.224 283.9)
XYZxyz(20.0873, 11.7097, 70.9994)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6042DF #C1DF42
analogous
#4273DF #6042DF #AF42DF
triadic
#6042DF #DF6042 #42DF60
tetradic
#6042DF #DF4273 #C1DF42 #42DFAF
square
#6042DF #DF4273 #C1DF42 #42DFAF
split-complementary
#6042DF #DFAF42 #73DF42
monochromatic
#2F188E #4021C3 #6042DF #8C76E8 #B8ABF1

Accessibility & contrast

On white

6.28
#6042DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#6042DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6042DF
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6042DF#FFFFFF#000000##FFFFFF
##6042DF1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E4
Deuteranopia (green-blind)
#005BDC
Tritanopia (blue-blind)
#1B6C8C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6042df;
/* rgb */ color: rgb(96, 66, 223);
/* oklch */ color: oklch(51.2% 0.224 283.9);
Tailwind
colors: {
  custom: {
    50: '#9a79ea',
    500: '#6042df',
    950: '#000000',
  },
}
SCSS
$custom: #6042df;
$custom-light: #9a79ea;
$custom-dark: #000000;
JSON
{
  "hex": "#6042df",
  "rgb": {
    "r": 96,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 251.465,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51243,
    "c": 0.22422,
    "h": 283.9
  },
  "luminance": 0.11711
}

Semantic roles & 50–950 ramp

primary
#6042DF
secondary
#D2DF9E
accent
#EE3ACB
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6042DF

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

Preview Lab → · Contrast checker → · Palette generator →

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