#5F287D#5F287D

#5F287D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.6% C 0.142 H 311.4°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#5F287D
RGBrgb(95, 40, 125)
HSLhsl(279, 52%, 32%)
HSVhsv(279, 68%, 49%)
CMYKcmyk(24%, 68%, 0%, 51%)
CIE-LABlab(27.93, 40.04, -37.88)
CIE-LCHlch(27.93, 55.12, 316.59°)
OKLaboklab(39.62% 0.094 -0.1068)
OKLCHoklch(39.62% 0.142 311.4)
XYZxyz(9.1791, 5.4314, 19.9629)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F287D #467D28
analogous
#35287D #5F287D #7D2870
triadic
#5F287D #7D5F28 #287D5F
tetradic
#5F287D #7D3528 #467D28 #28707D
square
#5F287D #7D3528 #467D28 #28707D
split-complementary
#5F287D #707D28 #287D35
monochromatic
#190A20 #3C194F #5F287D #8237AB #A156C9

Accessibility & contrast

On white

10.07
#5F287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5F287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F287D
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F287D#FFFFFF#000000##FFFFFF
##5F287D1.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#1F437B
Tritanopia (blue-blind)
#5B394F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f287d;
/* rgb */ color: rgb(95, 40, 125);
/* oklch */ color: oklch(39.6% 0.142 311.4);
Tailwind
colors: {
  custom: {
    50: '#8f66a3',
    500: '#5f287d',
    950: '#000000',
  },
}
SCSS
$custom: #5f287d;
$custom-light: #8f66a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f287d",
  "rgb": {
    "r": 95,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 278.824,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39615,
    "c": 0.14231,
    "h": 311.4
  },
  "luminance": 0.05431
}

Semantic roles & 50–950 ramp

primary
#5F287D
secondary
#73AE53
accent
#DB4D7F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5F287D

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

Preview Lab → · Contrast checker → · Palette generator →

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