#5F218F#5F218F

#5F218F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.171 H 305.5°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#5F218F
RGBrgb(95, 33, 143)
HSLhsl(274, 63%, 35%)
HSVhsv(274, 77%, 56%)
CMYKcmyk(33.6%, 76.9%, 0%, 43.9%)
CIE-LABlab(28.12, 47.57, -48.80)
CIE-LCHlch(28.12, 68.15, 314.27°)
OKLaboklab(40.18% 0.099 -0.1389)
OKLCHoklch(40.18% 0.171 305.5)
XYZxyz(10.2200, 5.5039, 26.5052)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F218F #518F21
analogous
#28218F #5F218F #8F2188
triadic
#5F218F #8F5F21 #218F5F
tetradic
#5F218F #8F2821 #518F21 #21888F
square
#5F218F #8F2821 #518F21 #21888F
split-complementary
#5F218F #888F21 #218F28
monochromatic
#1D0A2C #3E165D #5F218F #802CC1 #9E53D7

Accessibility & contrast

On white

10.00
#5F218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5F218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F218F
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F218F#FFFFFF#000000##FFFFFF
##5F218F1.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#563C57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f218f;
/* rgb */ color: rgb(95, 33, 143);
/* oklch */ color: oklch(40.2% 0.171 305.5);
Tailwind
colors: {
  custom: {
    50: '#9163b1',
    500: '#5f218f',
    950: '#000000',
  },
}
SCSS
$custom: #5f218f;
$custom-light: #9163b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f218f",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 273.818,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40179,
    "c": 0.17055,
    "h": 305.5
  },
  "luminance": 0.05504
}

Semantic roles & 50–950 ramp

primary
#5F218F
secondary
#7FBB51
accent
#E6428A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F218F

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

Preview Lab → · Contrast checker → · Palette generator →

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