#5F229B#5F229B

#5F229B is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.3% C 0.182 H 301.5°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#5F229B
RGBrgb(95, 34, 155)
HSLhsl(270, 64%, 37%)
HSVhsv(270, 78%, 61%)
CMYKcmyk(38.7%, 78.1%, 0%, 39.2%)
CIE-LABlab(29.27, 50.05, -54.31)
CIE-LCHlch(29.27, 73.86, 312.66°)
OKLaboklab(41.29% 0.0952 -0.1551)
OKLCHoklch(41.29% 0.182 301.5)
XYZxyz(11.2063, 5.9434, 31.5608)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F229B #5E9B22
analogous
#23229B #5F229B #9B229B
triadic
#5F229B #9B5F22 #229B5F
tetradic
#5F229B #9B2322 #5E9B22 #229B9B
square
#5F229B #9B2322 #5E9B22 #229B9B
split-complementary
#5F229B #9B9B22 #229B23
monochromatic
#210C37 #401769 #5F229B #7E2DCD #9C5CDB

Accessibility & contrast

On white

9.59
#5F229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5F229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F229B
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F229B#FFFFFF#000000##FFFFFF
##5F229B1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#004499
Tritanopia (blue-blind)
#52425E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f229b;
/* rgb */ color: rgb(95, 34, 155);
/* oklch */ color: oklch(41.3% 0.182 301.5);
Tailwind
colors: {
  custom: {
    50: '#9264b9',
    500: '#5f229b',
    950: '#000000',
  },
}
SCSS
$custom: #5f229b;
$custom-light: #9264b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f229b",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 270.248,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41294,
    "c": 0.18195,
    "h": 301.5
  },
  "luminance": 0.05944
}

Semantic roles & 50–950 ramp

primary
#5F229B
secondary
#8CC059
accent
#E74193
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F229B

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

Preview Lab → · Contrast checker → · Palette generator →

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