#5F2188#5F2188

#5F2188 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.163 H 308.0°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#5F2188
RGBrgb(95, 33, 136)
HSLhsl(276, 61%, 33%)
HSVhsv(276, 76%, 53%)
CMYKcmyk(30.1%, 75.7%, 0%, 46.7%)
CIE-LABlab(27.57, 45.91, -45.36)
CIE-LCHlch(27.57, 64.54, 315.35°)
OKLaboklab(39.61% 0.1005 -0.1287)
OKLCHoklch(39.61% 0.163 308)
XYZxyz(9.7062, 5.2983, 23.7991)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2188 #4A8821
analogous
#2C2188 #5F2188 #88217D
triadic
#5F2188 #885F21 #21885F
tetradic
#5F2188 #882C21 #4A8821 #217D88
square
#5F2188 #882C21 #4A8821 #217D88
split-complementary
#5F2188 #7D8821 #21882C
monochromatic
#1A0925 #3D1557 #5F2188 #812DB9 #9F4FD4

Accessibility & contrast

On white

10.20
#5F2188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5F2188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2188
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2188#FFFFFF#000000##FFFFFF
##5F21881.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8B
Deuteranopia (green-blind)
#004286
Tritanopia (blue-blind)
#583953
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f2188;
/* rgb */ color: rgb(95, 33, 136);
/* oklch */ color: oklch(39.6% 0.163 308.0);
Tailwind
colors: {
  custom: {
    50: '#9163ab',
    500: '#5f2188',
    950: '#000000',
  },
}
SCSS
$custom: #5f2188;
$custom-light: #9163ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2188",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 276.117,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39613,
    "c": 0.16331,
    "h": 308
  },
  "luminance": 0.05298
}

Semantic roles & 50–950 ramp

primary
#5F2188
secondary
#78B84D
accent
#E44484
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F2188

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

Preview Lab → · Contrast checker → · Palette generator →

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