#5F33BB#5F33BB

#5F33BB is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.0% C 0.199 H 291.4°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#5F33BB
RGBrgb(95, 51, 187)
HSLhsl(259, 57%, 47%)
HSVhsv(259, 73%, 73%)
CMYKcmyk(49.2%, 72.7%, 0%, 26.7%)
CIE-LABlab(34.78, 50.55, -64.50)
CIE-LCHlch(34.78, 81.95, 308.09°)
OKLaboklab(46.02% 0.0724 -0.1851)
OKLCHoklch(46.02% 0.199 291.4)
XYZxyz(14.8702, 8.3878, 47.8396)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F33BB #8FBB33
analogous
#334BBB #5F33BB #A333BB
triadic
#5F33BB #BB5F33 #33BB5F
tetradic
#5F33BB #BB334B #8FBB33 #33BBA3
square
#5F33BB #BB334B #8FBB33 #33BBA3
split-complementary
#5F33BB #BBA333 #4BBB33
monochromatic
#2E195B #47268B #5F33BB #8059D2 #A589DF

Accessibility & contrast

On white

7.84
#5F33BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5F33BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F33BB
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F33BB#FFFFFF#000000##FFFFFF
##5F33BB1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BF
Deuteranopia (green-blind)
#004FB8
Tritanopia (blue-blind)
#415774
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f33bb;
/* rgb */ color: rgb(95, 51, 187);
/* oklch */ color: oklch(46.0% 0.199 291.4);
Tailwind
colors: {
  custom: {
    50: '#956fd1',
    500: '#5f33bb',
    950: '#000000',
  },
}
SCSS
$custom: #5f33bb;
$custom-light: #956fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f33bb",
  "rgb": {
    "r": 95,
    "g": 51,
    "b": 187
  },
  "hsl": {
    "h": 259.412,
    "s": 57.143,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46022,
    "c": 0.19874,
    "h": 291.4
  },
  "luminance": 0.08388
}

Semantic roles & 50–950 ramp

primary
#5F33BB
secondary
#B2C981
accent
#E047AF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5F33BB

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

Preview Lab → · Contrast checker → · Palette generator →

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