#5F2182#5F2182

#5F2182 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.157 H 310.2°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#5F2182
RGBrgb(95, 33, 130)
HSLhsl(278, 60%, 32%)
HSVhsv(278, 75%, 51%)
CMYKcmyk(26.9%, 74.6%, 0%, 49%)
CIE-LABlab(27.11, 44.52, -42.35)
CIE-LCHlch(27.11, 61.44, 316.43°)
OKLaboklab(39.14% 0.1015 -0.1199)
OKLCHoklch(39.14% 0.157 310.2)
XYZxyz(9.2916, 5.1325, 21.6160)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2182 #448221
analogous
#2F2182 #5F2182 #822174
triadic
#5F2182 #825F21 #21825F
tetradic
#5F2182 #822F21 #448221 #217482
square
#5F2182 #822F21 #448221 #217482
split-complementary
#5F2182 #748221 #21822F
monochromatic
#180820 #3B1551 #5F2182 #832DB3 #A14CD2

Accessibility & contrast

On white

10.36
#5F2182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F2182
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2182#FFFFFF#000000##FFFFFF
##5F21821.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D85
Deuteranopia (green-blind)
#0E4180
Tritanopia (blue-blind)
#5A374F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f2182;
/* rgb */ color: rgb(95, 33, 130);
/* oklch */ color: oklch(39.1% 0.157 310.2);
Tailwind
colors: {
  custom: {
    50: '#9063a7',
    500: '#5f2182',
    950: '#000000',
  },
}
SCSS
$custom: #5f2182;
$custom-light: #9063a7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2182",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 278.351,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39142,
    "c": 0.15709,
    "h": 310.2
  },
  "luminance": 0.05132
}

Semantic roles & 50–950 ramp

primary
#5F2182
secondary
#71B44A
accent
#E3457E
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5F2182

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

Preview Lab → · Contrast checker → · Palette generator →

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