#5F207A#5F207A

#5F207A is a dark, vivid purple. Relative luminance 0.049; OKLCH L 38.4% C 0.150 H 313.7°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#5F207A
RGBrgb(95, 32, 122)
HSLhsl(282, 58%, 30%)
HSVhsv(282, 74%, 48%)
CMYKcmyk(22.1%, 73.8%, 0%, 52.2%)
CIE-LABlab(26.36, 43.14, -38.50)
CIE-LCHlch(26.36, 57.82, 318.26°)
OKLaboklab(38.43% 0.1037 -0.1086)
OKLCHoklch(38.43% 0.15 313.7)
XYZxyz(8.7481, 4.8713, 18.8880)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F207A #3B7A20
analogous
#32207A #5F207A #7A2068
triadic
#5F207A #7A5F20 #207A5F
tetradic
#5F207A #7A3220 #3B7A20 #20687A
square
#5F207A #7A3220 #3B7A20 #20687A
split-complementary
#5F207A #687A20 #207A32
monochromatic
#130719 #39134A #5F207A #852DAA #A646CE

Accessibility & contrast

On white

10.64
#5F207A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5F207A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F207A
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F207A#FFFFFF#000000##FFFFFF
##5F207A1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7D
Deuteranopia (green-blind)
#1A4078
Tritanopia (blue-blind)
#5C334B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f207a;
/* rgb */ color: rgb(95, 32, 122);
/* oklch */ color: oklch(38.4% 0.150 313.7);
Tailwind
colors: {
  custom: {
    50: '#9062a1',
    500: '#5f207a',
    950: '#000000',
  },
}
SCSS
$custom: #5f207a;
$custom-light: #9062a1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f207a",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 122
  },
  "hsl": {
    "h": 282,
    "s": 58.442,
    "l": 30.196
  },
  "oklch": {
    "l": 0.38427,
    "c": 0.15015,
    "h": 313.7
  },
  "luminance": 0.04871
}

Semantic roles & 50–950 ramp

primary
#5F207A
secondary
#67AD49
accent
#E24675
background
#F9F6FA
surface
#F1EBF3
border
#CBC6CD
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5F207A

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

Preview Lab → · Contrast checker → · Palette generator →

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