#5F2167#5F2167

#5F2167 is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.2% C 0.130 H 323.0°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#5F2167
RGBrgb(95, 33, 103)
HSLhsl(293, 51%, 27%)
HSVhsv(293, 68%, 40%)
CMYKcmyk(7.8%, 68%, 0%, 59.6%)
CIE-LABlab(25.26, 38.60, -28.07)
CIE-LCHlch(25.26, 47.73, 323.97°)
OKLaboklab(37.23% 0.1035 -0.0781)
OKLCHoklch(37.23% 0.13 323)
XYZxyz(7.7111, 4.5003, 13.2918)
Luminance0.0450 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2167 #296721
analogous
#3C2167 #5F2167 #67214C
triadic
#5F2167 #675F21 #21675F
tetradic
#5F2167 #673C21 #296721 #214C67
square
#5F2167 #673C21 #296721 #214C67
split-complementary
#5F2167 #4C6721 #21673C
monochromatic
#150717 #341239 #5F2167 #8A3095 #B340C2

Accessibility & contrast

On white

11.05
#5F2167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5F2167 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2167
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2167#FFFFFF#000000##FFFFFF
##5F21671.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113769
Deuteranopia (green-blind)
#2B3E65
Tritanopia (blue-blind)
#612C41
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f2167;
/* rgb */ color: rgb(95, 33, 103);
/* oklch */ color: oklch(37.2% 0.130 323.0);
Tailwind
colors: {
  custom: {
    50: '#8f6193',
    500: '#5f2167',
    950: '#000000',
  },
}
SCSS
$custom: #5f2167;
$custom-light: #8f6193;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2167",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 103
  },
  "hsl": {
    "h": 293.143,
    "s": 51.471,
    "l": 26.667
  },
  "oklch": {
    "l": 0.37228,
    "c": 0.12965,
    "h": 323
  },
  "luminance": 0.045
}

Semantic roles & 50–950 ramp

primary
#5F2167
secondary
#529B49
accent
#DB4D5D
background
#F9F5F9
surface
#F1EAF1
border
#CBC6CB
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5F2167

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

Preview Lab → · Contrast checker → · Palette generator →

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