#5F226F#5F226F

#5F226F is a dark, vivid purple. Relative luminance 0.047; OKLCH L 37.9% C 0.136 H 318.6°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#5F226F
RGBrgb(95, 34, 111)
HSLhsl(288, 53%, 28%)
HSVhsv(288, 69%, 44%)
CMYKcmyk(14.4%, 69.4%, 0%, 56.5%)
CIE-LABlab(25.94, 39.81, -32.16)
CIE-LCHlch(25.94, 51.18, 321.07°)
OKLaboklab(37.88% 0.1022 -0.09)
OKLCHoklch(37.88% 0.136 318.6)
XYZxyz(8.1602, 4.7250, 15.5180)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F226F #326F22
analogous
#38226F #5F226F #6F2258
triadic
#5F226F #6F5F22 #226F5F
tetradic
#5F226F #6F3822 #326F22 #22586F
square
#5F226F #6F3822 #326F22 #22586F
split-complementary
#5F226F #586F22 #226F38
monochromatic
#140717 #371440 #5F226F #87309E #AB45C6

Accessibility & contrast

On white

10.80
#5F226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5F226F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F226F
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F226F#FFFFFF#000000##FFFFFF
##5F226F1.0010.801.9510.80
#FFFFFF10.801.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063971
Deuteranopia (green-blind)
#263F6D
Tritanopia (blue-blind)
#5F3045
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f226f;
/* rgb */ color: rgb(95, 34, 111);
/* oklch */ color: oklch(37.9% 0.136 318.6);
Tailwind
colors: {
  custom: {
    50: '#8f6299',
    500: '#5f226f',
    950: '#000000',
  },
}
SCSS
$custom: #5f226f;
$custom-light: #8f6299;
$custom-dark: #000000;
JSON
{
  "hex": "#5f226f",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 287.532,
    "s": 53.103,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37879,
    "c": 0.1362,
    "h": 318.6
  },
  "luminance": 0.04725
}

Semantic roles & 50–950 ramp

primary
#5F226F
secondary
#5DA24A
accent
#DD4B69
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050E
muted
#7E7A7E

Preview Lab

Preview with #5F226F

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

Preview Lab → · Contrast checker → · Palette generator →

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