#5F2D84#5F2D84

#5F2D84 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.8% C 0.143 H 307.7°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#5F2D84
RGBrgb(95, 45, 132)
HSLhsl(274, 49%, 35%)
HSVhsv(274, 66%, 52%)
CMYKcmyk(28%, 65.9%, 0%, 48.2%)
CIE-LABlab(29.35, 39.15, -39.98)
CIE-LCHlch(29.35, 55.96, 314.40°)
OKLaboklab(40.79% 0.0873 -0.113)
OKLCHoklch(40.79% 0.143 307.7)
XYZxyz(9.8217, 5.9757, 22.4613)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2D84 #52842D
analogous
#342D84 #5F2D84 #842D7E
triadic
#5F2D84 #845F2D #2D845F
tetradic
#5F2D84 #84342D #52842D #2D7E84
square
#5F2D84 #84342D #52842D #2D7E84
split-complementary
#5F2D84 #7E842D #2D8434
monochromatic
#1D0E29 #3E1D56 #5F2D84 #803DB2 #9D62C9

Accessibility & contrast

On white

9.57
#5F2D84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5F2D84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2D84
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2D84#FFFFFF#000000##FFFFFF
##5F2D841.009.572.209.57
#FFFFFF9.571.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004387
Deuteranopia (green-blind)
#1D4682
Tritanopia (blue-blind)
#593F54
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f2d84;
/* rgb */ color: rgb(95, 45, 132);
/* oklch */ color: oklch(40.8% 0.143 307.7);
Tailwind
colors: {
  custom: {
    50: '#9069a8',
    500: '#5f2d84',
    950: '#000000',
  },
}
SCSS
$custom: #5f2d84;
$custom-light: #9069a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2d84",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 132
  },
  "hsl": {
    "h": 274.483,
    "s": 49.153,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40794,
    "c": 0.14284,
    "h": 307.7
  },
  "luminance": 0.05976
}

Semantic roles & 50–950 ramp

primary
#5F2D84
secondary
#80B05D
accent
#D94F8A
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F2D84

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

Preview Lab → · Contrast checker → · Palette generator →

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