#5F33C8#5F33C8

#5F33C8 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.2% C 0.213 H 288.9°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#5F33C8
RGBrgb(95, 51, 200)
HSLhsl(258, 59%, 49%)
HSVhsv(258, 75%, 78%)
CMYKcmyk(52.5%, 74.5%, 0%, 21.6%)
CIE-LABlab(35.93, 54.12, -70.24)
CIE-LCHlch(35.93, 88.67, 307.61°)
OKLaboklab(47.18% 0.0693 -0.2019)
OKLCHoklch(47.18% 0.213 288.9)
XYZxyz(16.3254, 8.9699, 55.5035)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F33C8 #9CC833
analogous
#3352C8 #5F33C8 #AA33C8
triadic
#5F33C8 #C85F33 #33C85F
tetradic
#5F33C8 #C83352 #9CC833 #33C8AA
square
#5F33C8 #C83352 #9CC833 #33C8AA
split-complementary
#5F33C8 #C8AA33 #52C833
monochromatic
#311A66 #482797 #5F33C8 #8461D7 #AA92E3

Accessibility & contrast

On white

7.52
#5F33C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5F33C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F33C8
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F33C8#FFFFFF#000000##FFFFFF
##5F33C81.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CC
Deuteranopia (green-blind)
#0051C5
Tritanopia (blue-blind)
#375C7B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f33c8;
/* rgb */ color: rgb(95, 51, 200);
/* oklch */ color: oklch(47.2% 0.213 288.9);
Tailwind
colors: {
  custom: {
    50: '#976fda',
    500: '#5f33c8',
    950: '#000000',
  },
}
SCSS
$custom: #5f33c8;
$custom-light: #976fda;
$custom-dark: #000000;
JSON
{
  "hex": "#5f33c8",
  "rgb": {
    "r": 95,
    "g": 51,
    "b": 200
  },
  "hsl": {
    "h": 257.718,
    "s": 59.363,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47183,
    "c": 0.21347,
    "h": 288.9
  },
  "luminance": 0.08971
}

Semantic roles & 50–950 ramp

primary
#5F33C8
secondary
#BACE89
accent
#E345B4
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F33C8

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

Preview Lab → · Contrast checker → · Palette generator →

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