#5F22AF#5F22AF

#5F22AF is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 43.1% C 0.203 H 296.1°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#5F22AF
RGBrgb(95, 34, 175)
HSLhsl(266, 67%, 41%)
HSVhsv(266, 81%, 69%)
CMYKcmyk(45.7%, 80.6%, 0%, 31.4%)
CIE-LABlab(31.05, 55.00, -63.48)
CIE-LCHlch(31.05, 84.00, 310.91°)
OKLaboklab(43.08% 0.0893 -0.182)
OKLCHoklch(43.08% 0.203 296.1)
XYZxyz(13.0271, 6.6718, 41.1505)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F22AF #72AF22
analogous
#222CAF #5F22AF #A522AF
triadic
#5F22AF #AF5F22 #22AF5F
tetradic
#5F22AF #AF222C #72AF22 #22AFA5
square
#5F22AF #AF222C #72AF22 #22AFA5
split-complementary
#5F22AF #AFA522 #2CAF22
monochromatic
#270E49 #43187C #5F22AF #7C36D8 #9E69E2

Accessibility & contrast

On white

9.00
#5F22AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5F22AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F22AF
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F22AF#FFFFFF#000000##FFFFFF
##5F22AF1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#0047AC
Tritanopia (blue-blind)
#494A69
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f22af;
/* rgb */ color: rgb(95, 34, 175);
/* oklch */ color: oklch(43.1% 0.203 296.1);
Tailwind
colors: {
  custom: {
    50: '#9565c8',
    500: '#5f22af',
    950: '#000000',
  },
}
SCSS
$custom: #5f22af;
$custom-light: #9565c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f22af",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 175
  },
  "hsl": {
    "h": 265.957,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.4308,
    "c": 0.20271,
    "h": 296.1
  },
  "luminance": 0.06672
}

Semantic roles & 50–950 ramp

primary
#5F22AF
secondary
#9DC865
accent
#EA3DA0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F22AF

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

Preview Lab → · Contrast checker → · Palette generator →

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