#5F2D79#5F2D79

#5F2D79 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.0% C 0.130 H 312.3°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#5F2D79
RGBrgb(95, 45, 121)
HSLhsl(279, 46%, 33%)
HSVhsv(279, 63%, 47%)
CMYKcmyk(21.5%, 62.8%, 0%, 52.5%)
CIE-LABlab(28.62, 36.49, -34.25)
CIE-LCHlch(28.62, 50.05, 316.81°)
OKLaboklab(40.03% 0.0877 -0.0962)
OKLCHoklch(40.03% 0.13 312.3)
XYZxyz(9.1083, 5.6904, 18.7040)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2D79 #47792D
analogous
#392D79 #5F2D79 #792D6D
triadic
#5F2D79 #795F2D #2D795F
tetradic
#5F2D79 #79392D #47792D #2D6D79
square
#5F2D79 #79392D #47792D #2D6D79
split-complementary
#5F2D79 #6D792D #2D7939
monochromatic
#190C20 #3C1C4C #5F2D79 #823EA6 #A05DC3

Accessibility & contrast

On white

9.82
#5F2D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5F2D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2D79
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2D79#FFFFFF#000000##FFFFFF
##5F2D791.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12417B
Deuteranopia (green-blind)
#284577
Tritanopia (blue-blind)
#5C3B4E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f2d79;
/* rgb */ color: rgb(95, 45, 121);
/* oklch */ color: oklch(40.0% 0.130 312.3);
Tailwind
colors: {
  custom: {
    50: '#8f69a0',
    500: '#5f2d79',
    950: '#000000',
  },
}
SCSS
$custom: #5f2d79;
$custom-light: #8f69a0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2d79",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 121
  },
  "hsl": {
    "h": 279.474,
    "s": 45.783,
    "l": 32.549
  },
  "oklch": {
    "l": 0.40027,
    "c": 0.13017,
    "h": 312.3
  },
  "luminance": 0.0569
}

Semantic roles & 50–950 ramp

primary
#5F2D79
secondary
#74A958
accent
#D5527F
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D060F
muted
#7E7A7E

Preview Lab

Preview with #5F2D79

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

Preview Lab → · Contrast checker → · Palette generator →

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