#5F296E#5F296E

#5F296E is a dark, vivid purple. Relative luminance 0.051; OKLCH L 38.7% C 0.124 H 318.4°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#5F296E
RGBrgb(95, 41, 110)
HSLhsl(287, 46%, 30%)
HSVhsv(287, 63%, 43%)
CMYKcmyk(13.6%, 62.7%, 0%, 56.9%)
CIE-LABlab(27.14, 36.10, -29.60)
CIE-LCHlch(27.14, 46.68, 320.65°)
OKLaboklab(38.73% 0.0929 -0.0826)
OKLCHoklch(38.73% 0.124 318.4)
XYZxyz(8.3263, 5.1449, 15.3033)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F296E #386E29
analogous
#3D296E #5F296E #6E295A
triadic
#5F296E #6E5F29 #296E5F
tetradic
#5F296E #6E3D29 #386E29 #295A6E
square
#5F296E #6E3D29 #386E29 #295A6E
split-complementary
#5F296E #5A6E29 #296E3D
monochromatic
#130816 #381841 #5F296E #863A9B #A753BF

Accessibility & contrast

On white

10.35
#5F296E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5F296E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F296E
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F296E#FFFFFF#000000##FFFFFF
##5F296E1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173D70
Deuteranopia (green-blind)
#2C426C
Tritanopia (blue-blind)
#5F3447
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f296e;
/* rgb */ color: rgb(95, 41, 110);
/* oklch */ color: oklch(38.7% 0.124 318.4);
Tailwind
colors: {
  custom: {
    50: '#8f6698',
    500: '#5f296e',
    950: '#000000',
  },
}
SCSS
$custom: #5f296e;
$custom-light: #8f6698;
$custom-dark: #000000;
JSON
{
  "hex": "#5f296e",
  "rgb": {
    "r": 95,
    "g": 41,
    "b": 110
  },
  "hsl": {
    "h": 286.957,
    "s": 45.695,
    "l": 29.608
  },
  "oklch": {
    "l": 0.38732,
    "c": 0.12435,
    "h": 318.4
  },
  "luminance": 0.05145
}

Semantic roles & 50–950 ramp

primary
#5F296E
secondary
#63A053
accent
#D5526F
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0D060D
muted
#7D7A7E

Preview Lab

Preview with #5F296E

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

Preview Lab → · Contrast checker → · Palette generator →

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