#5F2B9A#5F2B9A

#5F2B9A is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.171 H 300.6°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#5F2B9A
RGBrgb(95, 43, 154)
HSLhsl(268, 56%, 39%)
HSVhsv(268, 72%, 60%)
CMYKcmyk(38.3%, 72.1%, 0%, 39.6%)
CIE-LABlab(30.63, 45.71, -51.49)
CIE-LCHlch(30.63, 68.86, 311.60°)
OKLaboklab(42.23% 0.0868 -0.1468)
OKLCHoklch(42.23% 0.171 300.6)
XYZxyz(11.4145, 6.4937, 31.2176)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2B9A #669A2B
analogous
#2B2E9A #5F2B9A #962B9A
triadic
#5F2B9A #9A5F2B #2B9A5F
tetradic
#5F2B9A #9A2B2E #669A2B #2B9A96
square
#5F2B9A #9A2B2E #669A2B #2B9A96
split-complementary
#5F2B9A #9A962B #2E9A2B
monochromatic
#24103A #411E6A #5F2B9A #7D3AC8 #9C6AD5

Accessibility & contrast

On white

9.14
#5F2B9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5F2B9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2B9A
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2B9A#FFFFFF#000000##FFFFFF
##5F2B9A1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f2b9a;
/* rgb */ color: rgb(95, 43, 154);
/* oklch */ color: oklch(42.2% 0.171 300.6);
Tailwind
colors: {
  custom: {
    50: '#9269b9',
    500: '#5f2b9a',
    950: '#000000',
  },
}
SCSS
$custom: #5f2b9a;
$custom-light: #9269b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2b9a",
  "rgb": {
    "r": 95,
    "g": 43,
    "b": 154
  },
  "hsl": {
    "h": 268.108,
    "s": 56.345,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42225,
    "c": 0.17059,
    "h": 300.6
  },
  "luminance": 0.06494
}

Semantic roles & 50–950 ramp

primary
#5F2B9A
secondary
#93BC65
accent
#E04899
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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