#5F207F#5F207F

#5F207F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.155 H 311.6°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#5F207F
RGBrgb(95, 32, 127)
HSLhsl(280, 60%, 31%)
HSVhsv(280, 75%, 50%)
CMYKcmyk(25.2%, 74.8%, 0%, 50.2%)
CIE-LABlab(26.73, 44.27, -41.07)
CIE-LCHlch(26.73, 60.39, 317.15°)
OKLaboklab(38.8% 0.103 -0.1161)
OKLCHoklch(38.8% 0.155 311.6)
XYZxyz(9.0659, 4.9985, 20.5618)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F207F #407F20
analogous
#2F207F #5F207F #7F206F
triadic
#5F207F #7F5F20 #207F5F
tetradic
#5F207F #7F2F20 #407F20 #206F7F
square
#5F207F #7F2F20 #407F20 #206F7F
split-complementary
#5F207F #6F7F20 #207F2F
monochromatic
#16071D #3A144E #5F207F #842CB0 #A348D1

Accessibility & contrast

On white

10.50
#5F207F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5F207F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F207F
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F207F#FFFFFF#000000##FFFFFF
##5F207F1.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#12407D
Tritanopia (blue-blind)
#5B354D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f207f;
/* rgb */ color: rgb(95, 32, 127);
/* oklch */ color: oklch(38.8% 0.155 311.6);
Tailwind
colors: {
  custom: {
    50: '#9062a5',
    500: '#5f207f',
    950: '#000000',
  },
}
SCSS
$custom: #5f207f;
$custom-light: #9062a5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f207f",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 127
  },
  "hsl": {
    "h": 279.789,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38803,
    "c": 0.15525,
    "h": 311.6
  },
  "luminance": 0.04998
}

Semantic roles & 50–950 ramp

primary
#5F207F
secondary
#6CB249
accent
#E3457A
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5F207F

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

Preview Lab → · Contrast checker → · Palette generator →

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