#5F2C8A#5F2C8A

#5F2C8A is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.1% C 0.151 H 305.6°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#5F2C8A
RGBrgb(95, 44, 138)
HSLhsl(273, 52%, 36%)
HSVhsv(273, 68%, 54%)
CMYKcmyk(31.2%, 68.1%, 0%, 45.9%)
CIE-LABlab(29.59, 41.16, -43.34)
CIE-LCHlch(29.59, 59.77, 313.53°)
OKLaboklab(41.1% 0.0881 -0.1229)
OKLCHoklch(41.1% 0.151 305.6)
XYZxyz(10.2064, 6.0693, 24.6736)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2C8A #578A2C
analogous
#302C8A #5F2C8A #8A2C86
triadic
#5F2C8A #8A5F2C #2C8A5F
tetradic
#5F2C8A #8A302C #578A2C #2C868A
square
#5F2C8A #8A302C #578A2C #2C868A
split-complementary
#5F2C8A #868A2C #2C8A30
monochromatic
#1F0E2D #3F1D5C #5F2C8A #7F3BB8 #9D63CD

Accessibility & contrast

On white

9.49
#5F2C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5F2C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2C8A
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2C8A#FFFFFF#000000##FFFFFF
##5F2C8A1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448D
Deuteranopia (green-blind)
#114688
Tritanopia (blue-blind)
#574057
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f2c8a;
/* rgb */ color: rgb(95, 44, 138);
/* oklch */ color: oklch(41.1% 0.151 305.6);
Tailwind
colors: {
  custom: {
    50: '#9069ad',
    500: '#5f2c8a',
    950: '#000000',
  },
}
SCSS
$custom: #5f2c8a;
$custom-light: #9069ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2c8a",
  "rgb": {
    "r": 95,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 272.553,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.41099,
    "c": 0.15116,
    "h": 305.6
  },
  "luminance": 0.06069
}

Semantic roles & 50–950 ramp

primary
#5F2C8A
secondary
#85B45E
accent
#DB4D8E
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F2C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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