#5F33BA#5F33BA

#5F33BA is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.9% C 0.198 H 291.6°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#5F33BA
RGBrgb(95, 51, 186)
HSLhsl(260, 57%, 46%)
HSVhsv(260, 73%, 73%)
CMYKcmyk(48.9%, 72.6%, 0%, 27.1%)
CIE-LABlab(34.69, 50.28, -64.05)
CIE-LCHlch(34.69, 81.42, 308.13°)
OKLaboklab(45.93% 0.0726 -0.1838)
OKLCHoklch(45.93% 0.198 291.6)
XYZxyz(14.7636, 8.3452, 47.2777)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F33BA #8EBA33
analogous
#334ABA #5F33BA #A333BA
triadic
#5F33BA #BA5F33 #33BA5F
tetradic
#5F33BA #BA334A #8EBA33 #33BAA3
square
#5F33BA #BA334A #8EBA33 #33BAA3
split-complementary
#5F33BA #BAA333 #4ABA33
monochromatic
#2E195A #46268A #5F33BA #8059D1 #A589DF

Accessibility & contrast

On white

7.87
#5F33BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5F33BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F33BA
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F33BA#FFFFFF#000000##FFFFFF
##5F33BA1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BE
Deuteranopia (green-blind)
#004FB7
Tritanopia (blue-blind)
#415773
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f33ba;
/* rgb */ color: rgb(95, 51, 186);
/* oklch */ color: oklch(45.9% 0.198 291.6);
Tailwind
colors: {
  custom: {
    50: '#956fd0',
    500: '#5f33ba',
    950: '#000000',
  },
}
SCSS
$custom: #5f33ba;
$custom-light: #956fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f33ba",
  "rgb": {
    "r": 95,
    "g": 51,
    "b": 186
  },
  "hsl": {
    "h": 259.556,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45934,
    "c": 0.19759,
    "h": 291.6
  },
  "luminance": 0.08346
}

Semantic roles & 50–950 ramp

primary
#5F33BA
secondary
#B1C980
accent
#E048AE
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5F33BA

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

Preview Lab → · Contrast checker → · Palette generator →

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