#5F2A9A#5F2A9A

#5F2A9A is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.172 H 300.8°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#5F2A9A
RGBrgb(95, 42, 154)
HSLhsl(268, 57%, 38%)
HSVhsv(268, 73%, 60%)
CMYKcmyk(38.3%, 72.7%, 0%, 39.6%)
CIE-LABlab(30.45, 46.20, -51.77)
CIE-LCHlch(30.45, 69.39, 311.74°)
OKLaboklab(42.1% 0.0879 -0.1477)
OKLCHoklch(42.1% 0.172 300.8)
XYZxyz(11.3786, 6.4218, 31.2056)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2A9A #659A2A
analogous
#2A2D9A #5F2A9A #972A9A
triadic
#5F2A9A #9A5F2A #2A9A5F
tetradic
#5F2A9A #9A2A2D #659A2A #2A9A97
square
#5F2A9A #9A2A2D #659A2A #2A9A97
split-complementary
#5F2A9A #9A972A #2D9A2A
monochromatic
#24103A #411D6A #5F2A9A #7D38C9 #9C68D6

Accessibility & contrast

On white

9.19
#5F2A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5F2A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2A9A
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2A9A#FFFFFF#000000##FFFFFF
##5F2A9A1.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#004798
Tritanopia (blue-blind)
#52455F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f2a9a;
/* rgb */ color: rgb(95, 42, 154);
/* oklch */ color: oklch(42.1% 0.172 300.8);
Tailwind
colors: {
  custom: {
    50: '#9268b9',
    500: '#5f2a9a',
    950: '#000000',
  },
}
SCSS
$custom: #5f2a9a;
$custom-light: #9268b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2a9a",
  "rgb": {
    "r": 95,
    "g": 42,
    "b": 154
  },
  "hsl": {
    "h": 268.393,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.42103,
    "c": 0.17182,
    "h": 300.8
  },
  "luminance": 0.06422
}

Semantic roles & 50–950 ramp

primary
#5F2A9A
secondary
#92BC63
accent
#E04798
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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