#5F218C#5F218C

#5F218C is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.167 H 306.5°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#5F218C
RGBrgb(95, 33, 140)
HSLhsl(275, 62%, 34%)
HSVhsv(275, 76%, 55%)
CMYKcmyk(32.1%, 76.4%, 0%, 45.1%)
CIE-LABlab(27.88, 46.86, -47.33)
CIE-LCHlch(27.88, 66.60, 314.71°)
OKLaboklab(39.93% 0.0997 -0.1346)
OKLCHoklch(39.93% 0.167 306.5)
XYZxyz(9.9958, 5.4142, 25.3243)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F218C #4E8C21
analogous
#29218C #5F218C #8C2184
triadic
#5F218C #8C5F21 #218C5F
tetradic
#5F218C #8C2921 #4E8C21 #21848C
square
#5F218C #8C2921 #4E8C21 #21848C
split-complementary
#5F218C #848C21 #218C29
monochromatic
#1C0A29 #3D155A #5F218C #812DBE #9E51D6

Accessibility & contrast

On white

10.08
#5F218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5F218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F218C
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F218C#FFFFFF#000000##FFFFFF
##5F218C1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#573B55
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f218c;
/* rgb */ color: rgb(95, 33, 140);
/* oklch */ color: oklch(39.9% 0.167 306.5);
Tailwind
colors: {
  custom: {
    50: '#9163ae',
    500: '#5f218c',
    950: '#000000',
  },
}
SCSS
$custom: #5f218c;
$custom-light: #9163ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5f218c",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 274.766,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39934,
    "c": 0.16745,
    "h": 306.5
  },
  "luminance": 0.05414
}

Semantic roles & 50–950 ramp

primary
#5F218C
secondary
#7CB94F
accent
#E54387
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F218C

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

Preview Lab → · Contrast checker → · Palette generator →

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