#5F2A67#5F2A67

#5F2A67 is a dark, moderate purple. Relative luminance 0.051; OKLCH L 38.4% C 0.115 H 322.2°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#5F2A67
RGBrgb(95, 42, 103)
HSLhsl(292, 42%, 28%)
HSVhsv(292, 59%, 40%)
CMYKcmyk(7.8%, 59.2%, 0%, 59.6%)
CIE-LABlab(26.93, 34.04, -25.43)
CIE-LCHlch(26.93, 42.49, 323.23°)
OKLaboklab(38.44% 0.091 -0.0705)
OKLCHoklch(38.44% 0.115 322.2)
XYZxyz(7.9952, 5.0685, 13.3865)
Luminance0.0507 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2A67 #32672A
analogous
#402A67 #5F2A67 #672A50
triadic
#5F2A67 #675F2A #2A675F
tetradic
#5F2A67 #67402A #32672A #2A5067
square
#5F2A67 #67402A #32672A #2A5067
split-complementary
#5F2A67 #50672A #2A6740
monochromatic
#140916 #37183C #5F2A67 #873C92 #AB53B9

Accessibility & contrast

On white

10.43
#5F2A67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5F2A67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2A67
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2A67#FFFFFF#000000##FFFFFF
##5F2A671.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3C69
Deuteranopia (green-blind)
#314265
Tritanopia (blue-blind)
#603344
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f2a67;
/* rgb */ color: rgb(95, 42, 103);
/* oklch */ color: oklch(38.4% 0.115 322.2);
Tailwind
colors: {
  custom: {
    50: '#8e6792',
    500: '#5f2a67',
    950: '#000000',
  },
}
SCSS
$custom: #5f2a67;
$custom-light: #8e6792;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2a67",
  "rgb": {
    "r": 95,
    "g": 42,
    "b": 103
  },
  "hsl": {
    "h": 292.131,
    "s": 42.069,
    "l": 28.431
  },
  "oklch": {
    "l": 0.38442,
    "c": 0.11514,
    "h": 322.2
  },
  "luminance": 0.05068
}

Semantic roles & 50–950 ramp

primary
#5F2A67
secondary
#5D9954
accent
#D25666
background
#F8F6F9
surface
#F0EBF1
border
#CBC6CB
text
#0C060D
muted
#7D7A7E

Preview Lab

Preview with #5F2A67

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

Preview Lab → · Contrast checker → · Palette generator →

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