#5F226C#5F226C

#5F226C is a dark, vivid purple. Relative luminance 0.047; OKLCH L 37.7% C 0.133 H 320.2°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#5F226C
RGBrgb(95, 34, 108)
HSLhsl(289, 52%, 28%)
HSVhsv(289, 69%, 42%)
CMYKcmyk(12%, 68.5%, 0%, 57.6%)
CIE-LABlab(25.74, 39.17, -30.54)
CIE-LCHlch(25.74, 49.67, 322.06°)
OKLaboklab(37.68% 0.1022 -0.0853)
OKLCHoklch(37.68% 0.133 320.2)
XYZxyz(7.9978, 4.6600, 14.6627)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F226C #2F6C22
analogous
#3A226C #5F226C #6C2254
triadic
#5F226C #6C5F22 #226C5F
tetradic
#5F226C #6C3A22 #2F6C22 #22546C
square
#5F226C #6C3A22 #2F6C22 #22546C
split-complementary
#5F226C #546C22 #226C3A
monochromatic
#140717 #36133D #5F226C #88319B #AE44C4

Accessibility & contrast

On white

10.87
#5F226C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5F226C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F226C
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F226C#FFFFFF#000000##FFFFFF
##5F226C1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C396E
Deuteranopia (green-blind)
#283F6A
Tritanopia (blue-blind)
#5F2F44
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f226c;
/* rgb */ color: rgb(95, 34, 108);
/* oklch */ color: oklch(37.7% 0.133 320.2);
Tailwind
colors: {
  custom: {
    50: '#8f6296',
    500: '#5f226c',
    950: '#000000',
  },
}
SCSS
$custom: #5f226c;
$custom-light: #8f6296;
$custom-dark: #000000;
JSON
{
  "hex": "#5f226c",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 108
  },
  "hsl": {
    "h": 289.459,
    "s": 52.113,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37678,
    "c": 0.13316,
    "h": 320.2
  },
  "luminance": 0.0466
}

Semantic roles & 50–950 ramp

primary
#5F226C
secondary
#59A04A
accent
#DC4C65
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050D
muted
#7E7A7E

Preview Lab

Preview with #5F226C

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

Preview Lab → · Contrast checker → · Palette generator →

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