#5F218E#5F218E

#5F218E is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.170 H 305.8°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#5F218E
RGBrgb(95, 33, 142)
HSLhsl(274, 62%, 34%)
HSVhsv(274, 77%, 56%)
CMYKcmyk(33.1%, 76.8%, 0%, 44.3%)
CIE-LABlab(28.04, 47.33, -48.31)
CIE-LCHlch(28.04, 67.63, 314.41°)
OKLaboklab(40.1% 0.0992 -0.1374)
OKLCHoklch(40.1% 0.17 305.8)
XYZxyz(10.1446, 5.4737, 26.1080)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F218E #508E21
analogous
#28218E #5F218E #8E2187
triadic
#5F218E #8E5F21 #218E5F
tetradic
#5F218E #8E2821 #508E21 #21878E
square
#5F218E #8E2821 #508E21 #21878E
split-complementary
#5F218E #878E21 #218E28
monochromatic
#1D0A2B #3E155C #5F218E #802DC0 #9E52D7

Accessibility & contrast

On white

10.02
#5F218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F218E
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F218E#FFFFFF#000000##FFFFFF
##5F218E1.0010.022.0910.02
#FFFFFF10.021.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#563C56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f218e;
/* rgb */ color: rgb(95, 33, 142);
/* oklch */ color: oklch(40.1% 0.170 305.8);
Tailwind
colors: {
  custom: {
    50: '#9163b0',
    500: '#5f218e',
    950: '#000000',
  },
}
SCSS
$custom: #5f218e;
$custom-light: #9163b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f218e",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 274.128,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.40097,
    "c": 0.16952,
    "h": 305.8
  },
  "luminance": 0.05474
}

Semantic roles & 50–950 ramp

primary
#5F218E
secondary
#7EBA50
accent
#E54289
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F218E

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

Preview Lab → · Contrast checker → · Palette generator →

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