#5F2272#5F2272

#5F2272 is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.1% C 0.139 H 317.1°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#5F2272
RGBrgb(95, 34, 114)
HSLhsl(286, 54%, 29%)
HSVhsv(286, 70%, 45%)
CMYKcmyk(16.7%, 70.2%, 0%, 55.3%)
CIE-LABlab(26.13, 40.47, -33.77)
CIE-LCHlch(26.13, 52.71, 320.15°)
OKLaboklab(38.09% 0.1021 -0.0947)
OKLCHoklch(38.09% 0.139 317.1)
XYZxyz(8.3282, 4.7922, 16.4026)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2272 #357222
analogous
#372272 #5F2272 #72225D
triadic
#5F2272 #725F22 #22725F
tetradic
#5F2272 #723722 #357222 #225D72
square
#5F2272 #723722 #357222 #225D72
split-complementary
#5F2272 #5D7222 #227237
monochromatic
#140718 #381443 #5F2272 #8630A1 #A946C8

Accessibility & contrast

On white

10.72
#5F2272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5F2272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2272
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2272#FFFFFF#000000##FFFFFF
##5F22721.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A74
Deuteranopia (green-blind)
#244070
Tritanopia (blue-blind)
#5E3147
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f2272;
/* rgb */ color: rgb(95, 34, 114);
/* oklch */ color: oklch(38.1% 0.139 317.1);
Tailwind
colors: {
  custom: {
    50: '#8f629b',
    500: '#5f2272',
    950: '#000000',
  },
}
SCSS
$custom: #5f2272;
$custom-light: #8f629b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2272",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 285.75,
    "s": 54.054,
    "l": 29.02
  },
  "oklch": {
    "l": 0.38085,
    "c": 0.13926,
    "h": 317.1
  },
  "luminance": 0.04792
}

Semantic roles & 50–950 ramp

primary
#5F2272
secondary
#60A54B
accent
#DD4A6D
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050E
muted
#7E7A7E

Preview Lab

Preview with #5F2272

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

Preview Lab → · Contrast checker → · Palette generator →

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