#5F227C#5F227C

#5F227C is a dark, vivid purple. Relative luminance 0.050; OKLCH L 38.8% C 0.150 H 312.6°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#5F227C
RGBrgb(95, 34, 124)
HSLhsl(281, 57%, 31%)
HSVhsv(281, 73%, 49%)
CMYKcmyk(23.4%, 72.6%, 0%, 51.4%)
CIE-LABlab(26.83, 42.70, -39.02)
CIE-LCHlch(26.83, 57.84, 317.57°)
OKLaboklab(38.8% 0.1012 -0.1101)
OKLCHoklch(38.8% 0.15 312.6)
XYZxyz(8.9288, 5.0324, 19.5659)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F227C #3F7C22
analogous
#32227C #5F227C #7C226C
triadic
#5F227C #7C5F22 #227C5F
tetradic
#5F227C #7C3222 #3F7C22 #226C7C
square
#5F227C #7C3222 #3F7C22 #226C7C
split-complementary
#5F227C #6C7C22 #227C32
monochromatic
#15081C #3A154C #5F227C #842FAC #A34BCE

Accessibility & contrast

On white

10.47
#5F227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F227C
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F227C#FFFFFF#000000##FFFFFF
##5F227C1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7F
Deuteranopia (green-blind)
#19417A
Tritanopia (blue-blind)
#5C354C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f227c;
/* rgb */ color: rgb(95, 34, 124);
/* oklch */ color: oklch(38.8% 0.150 312.6);
Tailwind
colors: {
  custom: {
    50: '#9063a2',
    500: '#5f227c',
    950: '#000000',
  },
}
SCSS
$custom: #5f227c;
$custom-light: #9063a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f227c",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 280.667,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38802,
    "c": 0.14959,
    "h": 312.6
  },
  "luminance": 0.05032
}

Semantic roles & 50–950 ramp

primary
#5F227C
secondary
#6BAF4B
accent
#E04879
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5F227C

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

Preview Lab → · Contrast checker → · Palette generator →

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