#5F227D#5F227D

#5F227D is a dark, vivid purple. Relative luminance 0.051; OKLCH L 38.9% C 0.151 H 312.2°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#5F227D
RGBrgb(95, 34, 125)
HSLhsl(280, 57%, 31%)
HSVhsv(280, 73%, 49%)
CMYKcmyk(24%, 72.8%, 0%, 51%)
CIE-LABlab(26.90, 42.92, -39.54)
CIE-LCHlch(26.90, 58.36, 317.35°)
OKLaboklab(38.88% 0.1011 -0.1117)
OKLCHoklch(38.88% 0.151 312.2)
XYZxyz(8.9923, 5.0579, 19.9006)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F227D #407D22
analogous
#31227D #5F227D #7D226D
triadic
#5F227D #7D5F22 #227D5F
tetradic
#5F227D #7D3122 #407D22 #226D7D
square
#5F227D #7D3122 #407D22 #226D7D
split-complementary
#5F227D #6D7D22 #227D31
monochromatic
#16081D #3A154D #5F227D #842FAD #A34BCE

Accessibility & contrast

On white

10.44
#5F227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5F227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F227D
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F227D#FFFFFF#000000##FFFFFF
##5F227D1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#18417B
Tritanopia (blue-blind)
#5B354D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f227d;
/* rgb */ color: rgb(95, 34, 125);
/* oklch */ color: oklch(38.9% 0.151 312.2);
Tailwind
colors: {
  custom: {
    50: '#9063a3',
    500: '#5f227d',
    950: '#000000',
  },
}
SCSS
$custom: #5f227d;
$custom-light: #9063a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f227d",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 280.22,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38876,
    "c": 0.15064,
    "h": 312.2
  },
  "luminance": 0.05058
}

Semantic roles & 50–950 ramp

primary
#5F227D
secondary
#6CB04B
accent
#E0477A
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5F227D

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

Preview Lab → · Contrast checker → · Palette generator →

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