#5F2A73#5F2A73

#5F2A73 is a dark, vivid purple. Relative luminance 0.053; OKLCH L 39.2% C 0.128 H 315.7°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#5F2A73
RGBrgb(95, 42, 115)
HSLhsl(284, 46%, 31%)
HSVhsv(284, 63%, 45%)
CMYKcmyk(17.4%, 63.5%, 0%, 54.9%)
CIE-LABlab(27.65, 36.70, -32.00)
CIE-LCHlch(27.65, 48.69, 318.92°)
OKLaboklab(39.2% 0.0917 -0.0896)
OKLCHoklch(39.2% 0.128 315.7)
XYZxyz(8.6413, 5.3269, 16.7893)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2A73 #3E732A
analogous
#3A2A73 #5F2A73 #732A62
triadic
#5F2A73 #735F2A #2A735F
tetradic
#5F2A73 #733A2A #3E732A #2A6273
square
#5F2A73 #733A2A #3E732A #2A6273
split-complementary
#5F2A73 #62732A #2A733A
monochromatic
#150919 #3A1A46 #5F2A73 #843AA0 #A456C1

Accessibility & contrast

On white

10.17
#5F2A73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5F2A73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2A73
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2A73#FFFFFF#000000##FFFFFF
##5F2A731.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133E75
Deuteranopia (green-blind)
#2A4371
Tritanopia (blue-blind)
#5E374A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f2a73;
/* rgb */ color: rgb(95, 42, 115);
/* oklch */ color: oklch(39.2% 0.128 315.7);
Tailwind
colors: {
  custom: {
    50: '#8f679c',
    500: '#5f2a73',
    950: '#000000',
  },
}
SCSS
$custom: #5f2a73;
$custom-light: #8f679c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2a73",
  "rgb": {
    "r": 95,
    "g": 42,
    "b": 115
  },
  "hsl": {
    "h": 283.562,
    "s": 46.497,
    "l": 30.784
  },
  "oklch": {
    "l": 0.39198,
    "c": 0.12821,
    "h": 315.7
  },
  "luminance": 0.05327
}

Semantic roles & 50–950 ramp

primary
#5F2A73
secondary
#6AA554
accent
#D65276
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0D060E
muted
#7D7A7E

Preview Lab

Preview with #5F2A73

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

Preview Lab → · Contrast checker → · Palette generator →

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