#6042CD#6042CD

#6042CD is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 49.7% C 0.203 H 286.4°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#6042CD
RGBrgb(96, 66, 205)
HSLhsl(253, 58%, 53%)
HSVhsv(253, 68%, 80%)
CMYKcmyk(53.2%, 67.8%, 0%, 19.6%)
CIE-LABlab(39.22, 47.96, -67.74)
CIE-LCHlch(39.22, 83.00, 305.30°)
OKLaboklab(49.68% 0.0571 -0.1946)
OKLCHoklch(49.68% 0.203 286.4)
XYZxyz(17.7882, 10.7901, 58.8912)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6042CD #AFCD42
analogous
#4269CD #6042CD #A642CD
triadic
#6042CD #CD6042 #42CD60
tetradic
#6042CD #CD4269 #AFCD42 #42CDA6
square
#6042CD #CD4269 #AFCD42 #42CDA6
split-complementary
#6042CD #CDA642 #69CD42
monochromatic
#321F76 #462CA6 #6042CD #8972DA #B1A3E7

Accessibility & contrast

On white

6.65
#6042CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#6042CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6042CD
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6042CD#FFFFFF#000000##FFFFFF
##6042CD1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D1
Deuteranopia (green-blind)
#0058CA
Tritanopia (blue-blind)
#336682
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6042cd;
/* rgb */ color: rgb(96, 66, 205);
/* oklch */ color: oklch(49.7% 0.203 286.4);
Tailwind
colors: {
  custom: {
    50: '#9779dd',
    500: '#6042cd',
    950: '#000000',
  },
}
SCSS
$custom: #6042cd;
$custom-light: #9779dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6042cd",
  "rgb": {
    "r": 96,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 252.95,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49683,
    "c": 0.20282,
    "h": 286.4
  },
  "luminance": 0.10791
}

Semantic roles & 50–950 ramp

primary
#6042CD
secondary
#C6D397
accent
#E146C0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #6042CD

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

Preview Lab → · Contrast checker → · Palette generator →

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