#5F296F#5F296F

#5F296F is a dark, vivid purple. Relative luminance 0.052; OKLCH L 38.8% C 0.125 H 317.8°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#5F296F
RGBrgb(95, 41, 111)
HSLhsl(286, 46%, 30%)
HSVhsv(286, 63%, 44%)
CMYKcmyk(14.4%, 63.1%, 0%, 56.5%)
CIE-LABlab(27.20, 36.32, -30.14)
CIE-LCHlch(27.20, 47.20, 320.31°)
OKLaboklab(38.8% 0.093 -0.0842)
OKLCHoklch(38.8% 0.125 317.8)
XYZxyz(8.3811, 5.1668, 15.5917)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F296F #396F29
analogous
#3C296F #5F296F #6F295C
triadic
#5F296F #6F5F29 #296F5F
tetradic
#5F296F #6F3C29 #396F29 #295C6F
square
#5F296F #6F3C29 #396F29 #295C6F
split-complementary
#5F296F #5C6F29 #296F3C
monochromatic
#130816 #391842 #5F296F #853A9C #A753BF

Accessibility & contrast

On white

10.33
#5F296F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F296F
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F296F#FFFFFF#000000##FFFFFF
##5F296F1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163D71
Deuteranopia (green-blind)
#2C426D
Tritanopia (blue-blind)
#5F3548
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f296f;
/* rgb */ color: rgb(95, 41, 111);
/* oklch */ color: oklch(38.8% 0.125 317.8);
Tailwind
colors: {
  custom: {
    50: '#8f6699',
    500: '#5f296f',
    950: '#000000',
  },
}
SCSS
$custom: #5f296f;
$custom-light: #8f6699;
$custom-dark: #000000;
JSON
{
  "hex": "#5f296f",
  "rgb": {
    "r": 95,
    "g": 41,
    "b": 111
  },
  "hsl": {
    "h": 286.286,
    "s": 46.053,
    "l": 29.804
  },
  "oklch": {
    "l": 0.38797,
    "c": 0.12544,
    "h": 317.8
  },
  "luminance": 0.05166
}

Semantic roles & 50–950 ramp

primary
#5F296F
secondary
#65A153
accent
#D65270
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0D060E
muted
#7D7A7E

Preview Lab

Preview with #5F296F

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

Preview Lab → · Contrast checker → · Palette generator →

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