#5F229A#5F229A

#5F229A is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.181 H 301.8°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#5F229A
RGBrgb(95, 34, 154)
HSLhsl(271, 64%, 37%)
HSVhsv(271, 78%, 60%)
CMYKcmyk(38.3%, 77.9%, 0%, 39.6%)
CIE-LABlab(29.18, 49.81, -53.84)
CIE-LCHlch(29.18, 73.34, 312.77°)
OKLaboklab(41.21% 0.0954 -0.1537)
OKLCHoklch(41.21% 0.181 301.8)
XYZxyz(11.1227, 5.9100, 31.1203)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F229A #5D9A22
analogous
#23229A #5F229A #9A2299
triadic
#5F229A #9A5F22 #229A5F
tetradic
#5F229A #9A2322 #5D9A22 #22999A
square
#5F229A #9A2322 #5D9A22 #22999A
split-complementary
#5F229A #999A22 #229A23
monochromatic
#210C36 #401768 #5F229A #7E2DCC #9C5BDB

Accessibility & contrast

On white

9.62
#5F229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5F229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F229A
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F229A#FFFFFF#000000##FFFFFF
##5F229A1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#004498
Tritanopia (blue-blind)
#52415D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f229a;
/* rgb */ color: rgb(95, 34, 154);
/* oklch */ color: oklch(41.2% 0.181 301.8);
Tailwind
colors: {
  custom: {
    50: '#9264b9',
    500: '#5f229a',
    950: '#000000',
  },
}
SCSS
$custom: #5f229a;
$custom-light: #9264b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f229a",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 270.5,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41208,
    "c": 0.1809,
    "h": 301.8
  },
  "luminance": 0.0591
}

Semantic roles & 50–950 ramp

primary
#5F229A
secondary
#8BBF58
accent
#E74193
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #5F229A

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

Preview Lab → · Contrast checker → · Palette generator →

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