#5F33C4#5F33C4

#5F33C4 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.8% C 0.209 H 289.7°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#5F33C4
RGBrgb(95, 51, 196)
HSLhsl(258, 59%, 48%)
HSVhsv(258, 74%, 77%)
CMYKcmyk(51.5%, 74%, 0%, 23.1%)
CIE-LABlab(35.57, 53.02, -68.49)
CIE-LCHlch(35.57, 86.61, 307.74°)
OKLaboklab(46.82% 0.0703 -0.1968)
OKLCHoklch(46.82% 0.209 289.7)
XYZxyz(15.8641, 8.7854, 53.0737)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F33C4 #98C433
analogous
#334FC4 #5F33C4 #A733C4
triadic
#5F33C4 #C45F33 #33C45F
tetradic
#5F33C4 #C4334F #98C433 #33C4A7
square
#5F33C4 #C4334F #98C433 #33C4A7
split-complementary
#5F33C4 #C4A733 #4FC433
monochromatic
#301A63 #472693 #5F33C4 #835FD5 #A88FE2

Accessibility & contrast

On white

7.62
#5F33C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5F33C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F33C4
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F33C4#FFFFFF#000000##FFFFFF
##5F33C41.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C8
Deuteranopia (green-blind)
#0050C1
Tritanopia (blue-blind)
#3A5A79
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f33c4;
/* rgb */ color: rgb(95, 51, 196);
/* oklch */ color: oklch(46.8% 0.209 289.7);
Tailwind
colors: {
  custom: {
    50: '#966fd7',
    500: '#5f33c4',
    950: '#000000',
  },
}
SCSS
$custom: #5f33c4;
$custom-light: #966fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f33c4",
  "rgb": {
    "r": 95,
    "g": 51,
    "b": 196
  },
  "hsl": {
    "h": 258.207,
    "s": 58.704,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46821,
    "c": 0.20896,
    "h": 289.7
  },
  "luminance": 0.08786
}

Semantic roles & 50–950 ramp

primary
#5F33C4
secondary
#B7CD86
accent
#E246B3
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F33C4

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

Preview Lab → · Contrast checker → · Palette generator →

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