#5F296A#5F296A

#5F296A is a dark, vivid purple. Relative luminance 0.051; OKLCH L 38.5% C 0.120 H 320.6°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#5F296A
RGBrgb(95, 41, 106)
HSLhsl(290, 44%, 29%)
HSVhsv(290, 61%, 42%)
CMYKcmyk(10.4%, 61.3%, 0%, 58.4%)
CIE-LABlab(26.90, 35.22, -27.41)
CIE-LCHlch(26.90, 44.63, 322.11°)
OKLaboklab(38.48% 0.0927 -0.0762)
OKLCHoklch(38.48% 0.12 320.6)
XYZxyz(8.1135, 5.0597, 14.1821)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F296A #346A29
analogous
#3F296A #5F296A #6A2955
triadic
#5F296A #6A5F29 #296A5F
tetradic
#5F296A #6A3F29 #346A29 #29556A
square
#5F296A #6A3F29 #346A29 #29556A
split-complementary
#5F296A #556A29 #296A3F
monochromatic
#140916 #37183E #5F296A #873A96 #AA52BC

Accessibility & contrast

On white

10.44
#5F296A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5F296A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F296A
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F296A#FFFFFF#000000##FFFFFF
##5F296A1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3C6C
Deuteranopia (green-blind)
#2F4268
Tritanopia (blue-blind)
#603345
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f296a;
/* rgb */ color: rgb(95, 41, 106);
/* oklch */ color: oklch(38.5% 0.120 320.6);
Tailwind
colors: {
  custom: {
    50: '#8e6695',
    500: '#5f296a',
    950: '#000000',
  },
}
SCSS
$custom: #5f296a;
$custom-light: #8e6695;
$custom-dark: #000000;
JSON
{
  "hex": "#5f296a",
  "rgb": {
    "r": 95,
    "g": 41,
    "b": 106
  },
  "hsl": {
    "h": 289.846,
    "s": 44.218,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3848,
    "c": 0.12004,
    "h": 320.6
  },
  "luminance": 0.05059
}

Semantic roles & 50–950 ramp

primary
#5F296A
secondary
#5F9C52
accent
#D4546A
background
#F8F6F9
surface
#F0EBF1
border
#CBC6CB
text
#0D060D
muted
#7D7A7E

Preview Lab

Preview with #5F296A

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

Preview Lab → · Contrast checker → · Palette generator →

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