#5F42CD#5F42CD

#5F42CD is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.6% C 0.203 H 285.9°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#5F42CD
RGBrgb(95, 66, 205)
HSLhsl(253, 58%, 53%)
HSVhsv(253, 68%, 80%)
CMYKcmyk(53.7%, 67.8%, 0%, 19.6%)
CIE-LABlab(39.13, 47.80, -67.89)
CIE-LCHlch(39.13, 83.03, 305.15°)
OKLaboklab(49.59% 0.0557 -0.1951)
OKLCHoklch(49.59% 0.203 285.9)
XYZxyz(17.6837, 10.7362, 58.8863)
Luminance0.1074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F42CD #B0CD42
analogous
#426ACD #5F42CD #A442CD
triadic
#5F42CD #CD5F42 #42CD5F
tetradic
#5F42CD #CD426A #B0CD42 #42CDA4
square
#5F42CD #CD426A #B0CD42 #42CDA4
split-complementary
#5F42CD #CDA442 #6ACD42
monochromatic
#311F76 #452CA6 #5F42CD #8872DA #B1A3E7

Accessibility & contrast

On white

6.67
#5F42CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5F42CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F42CD
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F42CD#FFFFFF#000000##FFFFFF
##5F42CD1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f42cd;
/* rgb */ color: rgb(95, 66, 205);
/* oklch */ color: oklch(49.6% 0.203 285.9);
Tailwind
colors: {
  custom: {
    50: '#9778dd',
    500: '#5f42cd',
    950: '#000000',
  },
}
SCSS
$custom: #5f42cd;
$custom-light: #9778dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f42cd",
  "rgb": {
    "r": 95,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 252.518,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49594,
    "c": 0.2029,
    "h": 285.9
  },
  "luminance": 0.10737
}

Semantic roles & 50–950 ramp

primary
#5F42CD
secondary
#C7D397
accent
#E146C1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5F42CD

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

Preview Lab → · Contrast checker → · Palette generator →

#5F42CD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva