#5F33AB#5F33AB

#5F33AB is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.7% C 0.180 H 294.8°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#5F33AB
RGBrgb(95, 51, 171)
HSLhsl(262, 54%, 44%)
HSVhsv(262, 70%, 67%)
CMYKcmyk(44.4%, 70.2%, 0%, 32.9%)
CIE-LABlab(33.44, 46.18, -57.18)
CIE-LCHlch(33.44, 73.50, 308.92°)
OKLaboklab(44.65% 0.0756 -0.1636)
OKLCHoklch(44.65% 0.18 294.8)
XYZxyz(13.2518, 7.7405, 39.3160)
Luminance0.0774 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F33AB #7FAB33
analogous
#3343AB #5F33AB #9B33AB
triadic
#5F33AB #AB5F33 #33AB5F
tetradic
#5F33AB #AB3343 #7FAB33 #33AB9B
square
#5F33AB #AB3343 #7FAB33 #33AB9B
split-complementary
#5F33AB #AB9B33 #43AB33
monochromatic
#2B174D #45257C #5F33AB #7D50CB #A07FD9

Accessibility & contrast

On white

8.24
#5F33AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5F33AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F33AB
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F33AB#FFFFFF#000000##FFFFFF
##5F33AB1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#4A516B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5f33ab;
/* rgb */ color: rgb(95, 51, 171);
/* oklch */ color: oklch(44.7% 0.180 294.8);
Tailwind
colors: {
  custom: {
    50: '#936ec5',
    500: '#5f33ab',
    950: '#000000',
  },
}
SCSS
$custom: #5f33ab;
$custom-light: #936ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f33ab",
  "rgb": {
    "r": 95,
    "g": 51,
    "b": 171
  },
  "hsl": {
    "h": 262,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.44654,
    "c": 0.18023,
    "h": 294.8
  },
  "luminance": 0.07741
}

Semantic roles & 50–950 ramp

primary
#5F33AB
secondary
#A7C278
accent
#DD4AA8
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F33AB

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

Preview Lab → · Contrast checker → · Palette generator →

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