#5F2D8A#5F2D8A

#5F2D8A is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.150 H 305.5°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#5F2D8A
RGBrgb(95, 45, 138)
HSLhsl(272, 51%, 36%)
HSVhsv(272, 67%, 54%)
CMYKcmyk(31.2%, 67.4%, 0%, 45.9%)
CIE-LABlab(29.77, 40.64, -43.03)
CIE-LCHlch(29.77, 59.19, 313.37°)
OKLaboklab(41.23% 0.0869 -0.122)
OKLCHoklch(41.23% 0.15 305.5)
XYZxyz(10.2441, 6.1447, 24.6862)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2D8A #588A2D
analogous
#302D8A #5F2D8A #8A2D86
triadic
#5F2D8A #8A5F2D #2D8A5F
tetradic
#5F2D8A #8A302D #588A2D #2D868A
square
#5F2D8A #8A302D #588A2D #2D868A
split-complementary
#5F2D8A #868A2D #2D8A30
monochromatic
#1F0F2E #3F1E5C #5F2D8A #7F3CB8 #9D65CD

Accessibility & contrast

On white

9.42
#5F2D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5F2D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2D8A
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2D8A#FFFFFF#000000##FFFFFF
##5F2D8A1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#134688
Tritanopia (blue-blind)
#574157
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f2d8a;
/* rgb */ color: rgb(95, 45, 138);
/* oklch */ color: oklch(41.2% 0.150 305.5);
Tailwind
colors: {
  custom: {
    50: '#9069ad',
    500: '#5f2d8a',
    950: '#000000',
  },
}
SCSS
$custom: #5f2d8a;
$custom-light: #9069ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2d8a",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 272.258,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41234,
    "c": 0.14975,
    "h": 305.5
  },
  "luminance": 0.06145
}

Semantic roles & 50–950 ramp

primary
#5F2D8A
secondary
#86B360
accent
#DA4D8F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F2D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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