#5F229D#5F229D

#5F229D is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.5% C 0.184 H 300.9°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#5F229D
RGBrgb(95, 34, 157)
HSLhsl(270, 64%, 37%)
HSVhsv(270, 78%, 62%)
CMYKcmyk(39.5%, 78.3%, 0%, 38.4%)
CIE-LABlab(29.44, 50.54, -55.25)
CIE-LCHlch(29.44, 74.88, 312.45°)
OKLaboklab(41.47% 0.0946 -0.1578)
OKLCHoklch(41.47% 0.184 300.9)
XYZxyz(11.3756, 6.0112, 32.4527)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F229D #609D22
analogous
#22239D #5F229D #9C229D
triadic
#5F229D #9D5F22 #229D5F
tetradic
#5F229D #9D2223 #609D22 #229D9C
square
#5F229D #9D2223 #609D22 #229D9C
split-complementary
#5F229D #9D9C22 #239D22
monochromatic
#220C38 #41176B #5F229D #7D2DCF #9C5DDC

Accessibility & contrast

On white

9.54
#5F229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5F229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F229D
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F229D#FFFFFF#000000##FFFFFF
##5F229D1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#00459B
Tritanopia (blue-blind)
#51435F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f229d;
/* rgb */ color: rgb(95, 34, 157);
/* oklch */ color: oklch(41.5% 0.184 300.9);
Tailwind
colors: {
  custom: {
    50: '#9364bb',
    500: '#5f229d',
    950: '#000000',
  },
}
SCSS
$custom: #5f229d;
$custom-light: #9364bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f229d",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 269.756,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41467,
    "c": 0.18403,
    "h": 300.9
  },
  "luminance": 0.06011
}

Semantic roles & 50–950 ramp

primary
#5F229D
secondary
#8EC15A
accent
#E74095
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F229D

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

Preview Lab → · Contrast checker → · Palette generator →

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