#5F2284#5F2284

#5F2284 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.158 H 309.3°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#5F2284
RGBrgb(95, 34, 132)
HSLhsl(277, 59%, 33%)
HSVhsv(277, 74%, 52%)
CMYKcmyk(28%, 74.2%, 0%, 48.2%)
CIE-LABlab(27.42, 44.54, -43.10)
CIE-LCHlch(27.42, 61.98, 315.94°)
OKLaboklab(39.41% 0.1001 -0.1221)
OKLCHoklch(39.41% 0.158 309.3)
XYZxyz(9.4554, 5.2431, 22.3392)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2284 #478422
analogous
#2E2284 #5F2284 #842278
triadic
#5F2284 #845F22 #22845F
tetradic
#5F2284 #842E22 #478422 #227884
square
#5F2284 #842E22 #478422 #227884
split-complementary
#5F2284 #788422 #22842E
monochromatic
#190923 #3C1553 #5F2284 #822FB5 #A04FD2

Accessibility & contrast

On white

10.25
#5F2284 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5F2284 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2284
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2284#FFFFFF#000000##FFFFFF
##5F22841.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E87
Deuteranopia (green-blind)
#0B4282
Tritanopia (blue-blind)
#5A3851
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f2284;
/* rgb */ color: rgb(95, 34, 132);
/* oklch */ color: oklch(39.4% 0.158 309.3);
Tailwind
colors: {
  custom: {
    50: '#9063a8',
    500: '#5f2284',
    950: '#000000',
  },
}
SCSS
$custom: #5f2284;
$custom-light: #9063a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2284",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 132
  },
  "hsl": {
    "h": 277.347,
    "s": 59.036,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39408,
    "c": 0.15793,
    "h": 309.3
  },
  "luminance": 0.05243
}

Semantic roles & 50–950 ramp

primary
#5F2284
secondary
#74B54D
accent
#E24681
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F2284

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

Preview Lab → · Contrast checker → · Palette generator →

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