#5F287E#5F287E

#5F287E is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.7% C 0.143 H 310.9°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#5F287E
RGBrgb(95, 40, 126)
HSLhsl(278, 52%, 33%)
HSVhsv(278, 68%, 49%)
CMYKcmyk(24.6%, 68.3%, 0%, 50.6%)
CIE-LABlab(28.00, 40.28, -38.40)
CIE-LCHlch(28.00, 55.65, 316.37°)
OKLaboklab(39.69% 0.094 -0.1083)
OKLCHoklch(39.69% 0.143 310.9)
XYZxyz(9.2433, 5.4570, 20.3010)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F287E #477E28
analogous
#34287E #5F287E #7E2872
triadic
#5F287E #7E5F28 #287E5F
tetradic
#5F287E #7E3428 #477E28 #28727E
square
#5F287E #7E3428 #477E28 #28727E
split-complementary
#5F287E #727E28 #287E34
monochromatic
#190B21 #3C1950 #5F287E #8237AC #A057CA

Accessibility & contrast

On white

10.04
#5F287E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F287E
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F287E#FFFFFF#000000##FFFFFF
##5F287E1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#1E437C
Tritanopia (blue-blind)
#5B394F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f287e;
/* rgb */ color: rgb(95, 40, 126);
/* oklch */ color: oklch(39.7% 0.143 310.9);
Tailwind
colors: {
  custom: {
    50: '#8f66a4',
    500: '#5f287e',
    950: '#000000',
  },
}
SCSS
$custom: #5f287e;
$custom-light: #8f66a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f287e",
  "rgb": {
    "r": 95,
    "g": 40,
    "b": 126
  },
  "hsl": {
    "h": 278.372,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39687,
    "c": 0.14342,
    "h": 310.9
  },
  "luminance": 0.05457
}

Semantic roles & 50–950 ramp

primary
#5F287E
secondary
#74AF53
accent
#DB4D80
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5F287E

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

Preview Lab → · Contrast checker → · Palette generator →

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