#5F33C5#5F33C5

#5F33C5 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.9% C 0.210 H 289.5°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5F33C5
RGBrgb(95, 51, 197)
HSLhsl(258, 59%, 49%)
HSVhsv(258, 74%, 77%)
CMYKcmyk(51.8%, 74.1%, 0%, 22.7%)
CIE-LABlab(35.66, 53.29, -68.93)
CIE-LCHlch(35.66, 87.13, 307.71°)
OKLaboklab(46.91% 0.07 -0.1981)
OKLCHoklch(46.91% 0.21 289.5)
XYZxyz(15.9783, 8.8310, 53.6751)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F33C5 #99C533
analogous
#3350C5 #5F33C5 #A833C5
triadic
#5F33C5 #C55F33 #33C55F
tetradic
#5F33C5 #C53350 #99C533 #33C5A8
square
#5F33C5 #C53350 #99C533 #33C5A8
split-complementary
#5F33C5 #C5A833 #50C533
monochromatic
#301A64 #482694 #5F33C5 #835FD6 #A990E2

Accessibility & contrast

On white

7.59
#5F33C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5F33C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F33C5
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F33C5#FFFFFF#000000##FFFFFF
##5F33C51.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C9
Deuteranopia (green-blind)
#0050C2
Tritanopia (blue-blind)
#395B7A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f33c5;
/* rgb */ color: rgb(95, 51, 197);
/* oklch */ color: oklch(46.9% 0.210 289.5);
Tailwind
colors: {
  custom: {
    50: '#966fd8',
    500: '#5f33c5',
    950: '#000000',
  },
}
SCSS
$custom: #5f33c5;
$custom-light: #966fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f33c5",
  "rgb": {
    "r": 95,
    "g": 51,
    "b": 197
  },
  "hsl": {
    "h": 258.082,
    "s": 58.871,
    "l": 48.627
  },
  "oklch": {
    "l": 0.46912,
    "c": 0.21009,
    "h": 289.5
  },
  "luminance": 0.08832
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F33C5

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

Preview Lab → · Contrast checker → · Palette generator →

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