#5F42CF#5F42CF

#5F42CF is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 49.8% C 0.205 H 285.7°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#5F42CF
RGBrgb(95, 66, 207)
HSLhsl(252, 59%, 54%)
HSVhsv(252, 68%, 81%)
CMYKcmyk(54.1%, 68.1%, 0%, 18.8%)
CIE-LABlab(39.30, 48.39, -68.78)
CIE-LCHlch(39.30, 84.09, 305.13°)
OKLaboklab(49.77% 0.0554 -0.1977)
OKLCHoklch(49.77% 0.205 285.7)
XYZxyz(17.9266, 10.8333, 60.1658)
Luminance0.1083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F42CF #B2CF42
analogous
#426BCF #5F42CF #A542CF
triadic
#5F42CF #CF5F42 #42CF5F
tetradic
#5F42CF #CF426B #B2CF42 #42CFA5
square
#5F42CF #CF426B #B2CF42 #42CFA5
split-complementary
#5F42CF #CFA542 #6BCF42
monochromatic
#311F78 #452BA9 #5F42CF #8873DB #B2A4E8

Accessibility & contrast

On white

6.63
#5F42CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#5F42CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F42CF
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F42CF#FFFFFF#000000##FFFFFF
##5F42CF1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D3
Deuteranopia (green-blind)
#0058CC
Tritanopia (blue-blind)
#2F6683
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5f42cf;
/* rgb */ color: rgb(95, 66, 207);
/* oklch */ color: oklch(49.8% 0.205 285.7);
Tailwind
colors: {
  custom: {
    50: '#9779df',
    500: '#5f42cf',
    950: '#000000',
  },
}
SCSS
$custom: #5f42cf;
$custom-light: #9779df;
$custom-dark: #000000;
JSON
{
  "hex": "#5f42cf",
  "rgb": {
    "r": 95,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 252.34,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49765,
    "c": 0.20532,
    "h": 285.7
  },
  "luminance": 0.10834
}

Semantic roles & 50–950 ramp

primary
#5F42CF
secondary
#C8D598
accent
#E345C2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5F42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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