#5F227E#5F227E

#5F227E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.152 H 311.7°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#5F227E
RGBrgb(95, 34, 126)
HSLhsl(280, 58%, 31%)
HSVhsv(280, 73%, 49%)
CMYKcmyk(24.6%, 73%, 0%, 50.6%)
CIE-LABlab(26.97, 43.15, -40.05)
CIE-LCHlch(26.97, 58.87, 317.13°)
OKLaboklab(38.95% 0.101 -0.1132)
OKLCHoklch(38.95% 0.152 311.7)
XYZxyz(9.0565, 5.0835, 20.2388)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F227E #417E22
analogous
#31227E #5F227E #7E226F
triadic
#5F227E #7E5F22 #227E5F
tetradic
#5F227E #7E3122 #417E22 #226F7E
square
#5F227E #7E3122 #417E22 #226F7E
split-complementary
#5F227E #6F7E22 #227E31
monochromatic
#16081E #3B154E #5F227E #832FAE #A34CCF

Accessibility & contrast

On white

10.41
#5F227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5F227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F227E
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F227E#FFFFFF#000000##FFFFFF
##5F227E1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#16417C
Tritanopia (blue-blind)
#5B364D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f227e;
/* rgb */ color: rgb(95, 34, 126);
/* oklch */ color: oklch(39.0% 0.152 311.7);
Tailwind
colors: {
  custom: {
    50: '#9063a4',
    500: '#5f227e',
    950: '#000000',
  },
}
SCSS
$custom: #5f227e;
$custom-light: #9063a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f227e",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 279.783,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38951,
    "c": 0.15168,
    "h": 311.7
  },
  "luminance": 0.05083
}

Semantic roles & 50–950 ramp

primary
#5F227E
secondary
#6DB14B
accent
#E1477B
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5F227E

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

Preview Lab → · Contrast checker → · Palette generator →

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