#5F33CE#5F33CE

#5F33CE is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.7% C 0.220 H 287.9°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#5F33CE
RGBrgb(95, 51, 206)
HSLhsl(257, 61%, 50%)
HSVhsv(257, 75%, 81%)
CMYKcmyk(53.9%, 75.2%, 0%, 19.2%)
CIE-LABlab(36.47, 55.76, -72.83)
CIE-LCHlch(36.47, 91.73, 307.44°)
OKLaboklab(47.73% 0.0677 -0.2095)
OKLCHoklch(47.73% 0.22 287.9)
XYZxyz(17.0404, 9.2559, 59.2692)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F33CE #A2CE33
analogous
#3354CE #5F33CE #AC33CE
triadic
#5F33CE #CE5F33 #33CE5F
tetradic
#5F33CE #CE3354 #A2CE33 #33CEAC
square
#5F33CE #CE3354 #A2CE33 #33CEAC
split-complementary
#5F33CE #CEAC33 #54CE33
monochromatic
#311A6D #48269E #5F33CE #8664DA #AC96E6

Accessibility & contrast

On white

7.36
#5F33CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5F33CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F33CE
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F33CE#FFFFFF#000000##FFFFFF
##5F33CE1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D2
Deuteranopia (green-blind)
#0052CB
Tritanopia (blue-blind)
#315E7F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5f33ce;
/* rgb */ color: rgb(95, 51, 206);
/* oklch */ color: oklch(47.7% 0.220 287.9);
Tailwind
colors: {
  custom: {
    50: '#9870de',
    500: '#5f33ce',
    950: '#000000',
  },
}
SCSS
$custom: #5f33ce;
$custom-light: #9870de;
$custom-dark: #000000;
JSON
{
  "hex": "#5f33ce",
  "rgb": {
    "r": 95,
    "g": 51,
    "b": 206
  },
  "hsl": {
    "h": 257.032,
    "s": 61.265,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47733,
    "c": 0.22019,
    "h": 287.9
  },
  "luminance": 0.09257
}

Semantic roles & 50–950 ramp

primary
#5F33CE
secondary
#BDD18C
accent
#E443B7
background
#FAF6FD
surface
#F3ECFB
border
#CDC7D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5F33CE

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

Preview Lab → · Contrast checker → · Palette generator →

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