#5F208D#5F208D

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

Color values

HEX#5F208D
RGBrgb(95, 32, 141)
HSLhsl(275, 63%, 34%)
HSVhsv(275, 77%, 55%)
CMYKcmyk(32.6%, 77.3%, 0%, 44.7%)
CIE-LABlab(27.82, 47.52, -48.06)
CIE-LCHlch(27.82, 67.59, 314.67°)
OKLaboklab(39.91% 0.1004 -0.1367)
OKLCHoklch(39.91% 0.17 306.3)
XYZxyz(10.0425, 5.3891, 25.7053)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F208D #4E8D20
analogous
#29208D #5F208D #8D2085
triadic
#5F208D #8D5F20 #208D5F
tetradic
#5F208D #8D2920 #4E8D20 #20858D
square
#5F208D #8D2920 #4E8D20 #20858D
split-complementary
#5F208D #858D20 #208D29
monochromatic
#1C0929 #3D155B #5F208D #812BBF #9E50D7

Accessibility & contrast

On white

10.11
#5F208D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F208D
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F208D#FFFFFF#000000##FFFFFF
##5F208D1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f208d;
/* rgb */ color: rgb(95, 32, 141);
/* oklch */ color: oklch(39.9% 0.170 306.3);
Tailwind
colors: {
  custom: {
    50: '#9163af',
    500: '#5f208d',
    950: '#000000',
  },
}
SCSS
$custom: #5f208d;
$custom-light: #9163af;
$custom-dark: #000000;
JSON
{
  "hex": "#5f208d",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 141
  },
  "hsl": {
    "h": 274.679,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39912,
    "c": 0.16961,
    "h": 306.3
  },
  "luminance": 0.05389
}

Semantic roles & 50–950 ramp

primary
#5F208D
secondary
#7CBA4E
accent
#E64287
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F208D

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

Preview Lab → · Contrast checker → · Palette generator →

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