#5F21AF#5F21AF

#5F21AF is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 43.0% C 0.204 H 296.2°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#5F21AF
RGBrgb(95, 33, 175)
HSLhsl(266, 68%, 41%)
HSVhsv(266, 81%, 69%)
CMYKcmyk(45.7%, 81.1%, 0%, 31.4%)
CIE-LABlab(30.91, 55.39, -63.70)
CIE-LCHlch(30.91, 84.42, 311.01°)
OKLaboklab(42.99% 0.09 -0.1826)
OKLCHoklch(42.99% 0.204 296.2)
XYZxyz(12.9990, 6.6154, 41.1412)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F21AF #71AF21
analogous
#212AAF #5F21AF #A621AF
triadic
#5F21AF #AF5F21 #21AF5F
tetradic
#5F21AF #AF212A #71AF21 #21AFA6
square
#5F21AF #AF212A #71AF21 #21AFA6
split-complementary
#5F21AF #AFA621 #2AAF21
monochromatic
#270E48 #43177C #5F21AF #7C34D9 #9D68E3

Accessibility & contrast

On white

9.04
#5F21AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5F21AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F21AF
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F21AF#FFFFFF#000000##FFFFFF
##5F21AF1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.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: #5f21af;
/* rgb */ color: rgb(95, 33, 175);
/* oklch */ color: oklch(43.0% 0.204 296.2);
Tailwind
colors: {
  custom: {
    50: '#9565c8',
    500: '#5f21af',
    950: '#000000',
  },
}
SCSS
$custom: #5f21af;
$custom-light: #9565c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f21af",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 175
  },
  "hsl": {
    "h": 266.197,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42988,
    "c": 0.20358,
    "h": 296.2
  },
  "luminance": 0.06616
}

Semantic roles & 50–950 ramp

primary
#5F21AF
secondary
#9CC864
accent
#EB3D9F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F21AF

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

Preview Lab → · Contrast checker → · Palette generator →

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