#5F2B8D#5F2B8D

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

Color values

HEX#5F2B8D
RGBrgb(95, 43, 141)
HSLhsl(272, 53%, 36%)
HSVhsv(272, 70%, 55%)
CMYKcmyk(32.6%, 69.5%, 0%, 44.7%)
CIE-LABlab(29.62, 42.42, -45.13)
CIE-LCHlch(29.62, 61.94, 313.22°)
OKLaboklab(41.2% 0.0889 -0.1281)
OKLCHoklch(41.2% 0.156 304.7)
XYZxyz(10.3898, 6.0838, 25.8211)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2B8D #598D2B
analogous
#2E2B8D #5F2B8D #8D2B8A
triadic
#5F2B8D #8D5F2B #2B8D5F
tetradic
#5F2B8D #8D2E2B #598D2B #2B8A8D
square
#5F2B8D #8D2E2B #598D2B #2B8A8D
split-complementary
#5F2B8D #8A8D2B #2B8D2E
monochromatic
#200E2F #3F1D5E #5F2B8D #7F39BC #9D63CF

Accessibility & contrast

On white

9.47
#5F2B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5F2B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2B8D
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2B8D#FFFFFF#000000##FFFFFF
##5F2B8D1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#07468B
Tritanopia (blue-blind)
#574158
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f2b8d;
/* rgb */ color: rgb(95, 43, 141);
/* oklch */ color: oklch(41.2% 0.156 304.7);
Tailwind
colors: {
  custom: {
    50: '#9068af',
    500: '#5f2b8d',
    950: '#000000',
  },
}
SCSS
$custom: #5f2b8d;
$custom-light: #9068af;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2b8d",
  "rgb": {
    "r": 95,
    "g": 43,
    "b": 141
  },
  "hsl": {
    "h": 271.837,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41195,
    "c": 0.15596,
    "h": 304.7
  },
  "luminance": 0.06084
}

Semantic roles & 50–950 ramp

primary
#5F2B8D
secondary
#87B65E
accent
#DD4B8F
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F2B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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