#5F2189#5F2189

#5F2189 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.164 H 307.6°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#5F2189
RGBrgb(95, 33, 137)
HSLhsl(276, 61%, 33%)
HSVhsv(276, 76%, 54%)
CMYKcmyk(30.7%, 75.9%, 0%, 46.3%)
CIE-LABlab(27.65, 46.15, -45.85)
CIE-LCHlch(27.65, 65.06, 315.18°)
OKLaboklab(39.69% 0.1003 -0.1302)
OKLCHoklch(39.69% 0.164 307.6)
XYZxyz(9.7776, 5.3269, 24.1752)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2189 #4B8921
analogous
#2B2189 #5F2189 #89217F
triadic
#5F2189 #895F21 #21895F
tetradic
#5F2189 #892B21 #4B8921 #217F89
square
#5F2189 #892B21 #4B8921 #217F89
split-complementary
#5F2189 #7F8921 #21892B
monochromatic
#1B0926 #3D1558 #5F2189 #812DBA #9F50D5

Accessibility & contrast

On white

10.17
#5F2189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5F2189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2189
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2189#FFFFFF#000000##FFFFFF
##5F21891.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8C
Deuteranopia (green-blind)
#004287
Tritanopia (blue-blind)
#583A53
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f2189;
/* rgb */ color: rgb(95, 33, 137);
/* oklch */ color: oklch(39.7% 0.164 307.6);
Tailwind
colors: {
  custom: {
    50: '#9163ac',
    500: '#5f2189',
    950: '#000000',
  },
}
SCSS
$custom: #5f2189;
$custom-light: #9163ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2189",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 137
  },
  "hsl": {
    "h": 275.769,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39692,
    "c": 0.16434,
    "h": 307.6
  },
  "luminance": 0.05327
}

Semantic roles & 50–950 ramp

primary
#5F2189
secondary
#79B84E
accent
#E44484
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F2189

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

Preview Lab → · Contrast checker → · Palette generator →

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