#5F2E6A#5F2E6A

#5F2E6A is a dark, moderate purple. Relative luminance 0.054; OKLCH L 39.2% C 0.111 H 320.0°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#5F2E6A
RGBrgb(95, 46, 106)
HSLhsl(289, 39%, 30%)
HSVhsv(289, 57%, 42%)
CMYKcmyk(10.4%, 56.6%, 0%, 58.4%)
CIE-LABlab(27.92, 32.49, -25.80)
CIE-LCHlch(27.92, 41.49, 321.55°)
OKLaboklab(39.23% 0.0854 -0.0716)
OKLCHoklch(39.23% 0.111 320)
XYZxyz(8.2975, 5.4278, 14.2435)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2E6A #396A2E
analogous
#412E6A #5F2E6A #6A2E57
triadic
#5F2E6A #6A5F2E #2E6A5F
tetradic
#5F2E6A #6A412E #396A2E #2E576A
square
#5F2E6A #6A412E #396A2E #2E576A
split-complementary
#5F2E6A #576A2E #2E6A41
monochromatic
#130915 #391B3F #5F2E6A #854195 #A75BB8

Accessibility & contrast

On white

10.07
#5F2E6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5F2E6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2E6A
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2E6A#FFFFFF#000000##FFFFFF
##5F2E6A1.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#233E6C
Deuteranopia (green-blind)
#334468
Tritanopia (blue-blind)
#603747
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f2e6a;
/* rgb */ color: rgb(95, 46, 106);
/* oklch */ color: oklch(39.2% 0.111 320.0);
Tailwind
colors: {
  custom: {
    50: '#8e6995',
    500: '#5f2e6a',
    950: '#000000',
  },
}
SCSS
$custom: #5f2e6a;
$custom-light: #8e6995;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2e6a",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 106
  },
  "hsl": {
    "h": 289,
    "s": 39.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.39225,
    "c": 0.11144,
    "h": 320
  },
  "luminance": 0.05427
}

Semantic roles & 50–950 ramp

primary
#5F2E6A
secondary
#659C58
accent
#CF586E
background
#F8F6F9
surface
#F0EBF1
border
#CBC6CB
text
#0C060D
muted
#7D7A7E

Preview Lab

Preview with #5F2E6A

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

Preview Lab → · Contrast checker → · Palette generator →

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