#5F2D89#5F2D89

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

Color values

HEX#5F2D89
RGBrgb(95, 45, 137)
HSLhsl(273, 51%, 36%)
HSVhsv(273, 67%, 54%)
CMYKcmyk(30.7%, 67.2%, 0%, 46.3%)
CIE-LABlab(29.70, 40.39, -42.53)
CIE-LCHlch(29.70, 58.65, 313.53°)
OKLaboklab(41.16% 0.087 -0.1205)
OKLCHoklch(41.16% 0.149 305.8)
XYZxyz(10.1721, 6.1159, 24.3067)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2D89 #57892D
analogous
#312D89 #5F2D89 #892D85
triadic
#5F2D89 #895F2D #2D895F
tetradic
#5F2D89 #89312D #57892D #2D8589
square
#5F2D89 #89312D #57892D #2D8589
split-complementary
#5F2D89 #85892D #2D8931
monochromatic
#1F0F2D #3F1E5B #5F2D89 #7F3CB7 #9D64CC

Accessibility & contrast

On white

9.45
#5F2D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F2D89
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2D89#FFFFFF#000000##FFFFFF
##5F2D891.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448C
Deuteranopia (green-blind)
#154687
Tritanopia (blue-blind)
#584157
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f2d89;
/* rgb */ color: rgb(95, 45, 137);
/* oklch */ color: oklch(41.2% 0.149 305.8);
Tailwind
colors: {
  custom: {
    50: '#9069ac',
    500: '#5f2d89',
    950: '#000000',
  },
}
SCSS
$custom: #5f2d89;
$custom-light: #9069ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2d89",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 137
  },
  "hsl": {
    "h": 272.609,
    "s": 50.549,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4116,
    "c": 0.1486,
    "h": 305.8
  },
  "luminance": 0.06116
}

Semantic roles & 50–950 ramp

primary
#5F2D89
secondary
#85B35F
accent
#DA4E8E
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F2D89

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

Preview Lab → · Contrast checker → · Palette generator →

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