#5F225A#5F225A

#5F225A is a dark, moderate purple. Relative luminance 0.043; OKLCH L 36.6% C 0.116 H 331.0°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#5F225A
RGBrgb(95, 34, 90)
HSLhsl(305, 47%, 25%)
HSVhsv(305, 64%, 37%)
CMYKcmyk(0%, 64.2%, 5.3%, 62.7%)
CIE-LABlab(24.69, 35.56, -20.47)
CIE-LCHlch(24.69, 41.03, 330.08°)
OKLaboklab(36.57% 0.1011 -0.0561)
OKLCHoklch(36.57% 0.116 331)
XYZxyz(7.1368, 4.3156, 10.1280)
Luminance0.0432 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F225A #225F27
analogous
#45225F #5F225A #5F223B
triadic
#5F225A #5A5F22 #225A5F
tetradic
#5F225A #5F4522 #225F27 #223B5F
square
#5F225A #5F4522 #225F27 #223B5F
split-complementary
#5F225A #3B5F22 #225F45
monochromatic
#170815 #32122F #5F225A #8C3285 #B942AF

Accessibility & contrast

On white

11.27
#5F225A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5F225A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F225A
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F225A#FFFFFF#000000##FFFFFF
##5F225A1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E355C
Deuteranopia (green-blind)
#323E58
Tritanopia (blue-blind)
#63283A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f225a;
/* rgb */ color: rgb(95, 34, 90);
/* oklch */ color: oklch(36.6% 0.116 331.0);
Tailwind
colors: {
  custom: {
    50: '#8f6289',
    500: '#5f225a',
    950: '#000000',
  },
}
SCSS
$custom: #5f225a;
$custom-light: #8f6289;
$custom-dark: #000000;
JSON
{
  "hex": "#5f225a",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 90
  },
  "hsl": {
    "h": 304.918,
    "s": 47.287,
    "l": 25.294
  },
  "oklch": {
    "l": 0.3657,
    "c": 0.11565,
    "h": 331
  },
  "luminance": 0.04315
}

Semantic roles & 50–950 ramp

primary
#5F225A
secondary
#4A9350
accent
#D75C51
background
#F8F5F8
surface
#F0EAF0
border
#CBC6CB
text
#0D050B
muted
#7D797C

Preview Lab

Preview with #5F225A

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

Preview Lab → · Contrast checker → · Palette generator →

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