#5F218D#5F218D

#5F218D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.168 H 306.2°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#5F218D
RGBrgb(95, 33, 141)
HSLhsl(274, 62%, 34%)
HSVhsv(274, 77%, 55%)
CMYKcmyk(32.6%, 76.6%, 0%, 44.7%)
CIE-LABlab(27.96, 47.09, -47.82)
CIE-LCHlch(27.96, 67.12, 314.56°)
OKLaboklab(40.02% 0.0995 -0.136)
OKLCHoklch(40.02% 0.168 306.2)
XYZxyz(10.0698, 5.4438, 25.7144)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F218D #4F8D21
analogous
#29218D #5F218D #8D2185
triadic
#5F218D #8D5F21 #218D5F
tetradic
#5F218D #8D2921 #4F8D21 #21858D
square
#5F218D #8D2921 #4F8D21 #21858D
split-complementary
#5F218D #858D21 #218D29
monochromatic
#1C0A2A #3E155B #5F218D #802DBF #9E52D6

Accessibility & contrast

On white

10.05
#5F218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5F218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F218D
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F218D#FFFFFF#000000##FFFFFF
##5F218D1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#573C56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f218d;
/* rgb */ color: rgb(95, 33, 141);
/* oklch */ color: oklch(40.0% 0.168 306.2);
Tailwind
colors: {
  custom: {
    50: '#9163af',
    500: '#5f218d',
    950: '#000000',
  },
}
SCSS
$custom: #5f218d;
$custom-light: #9163af;
$custom-dark: #000000;
JSON
{
  "hex": "#5f218d",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 274.444,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40016,
    "c": 0.16848,
    "h": 306.2
  },
  "luminance": 0.05444
}

Semantic roles & 50–950 ramp

primary
#5F218D
secondary
#7DBA50
accent
#E54388
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F218D

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

Preview Lab → · Contrast checker → · Palette generator →

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