#5F2C8D#5F2C8D

#5F2C8D is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.3% C 0.155 H 304.6°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#5F2C8D
RGBrgb(95, 44, 141)
HSLhsl(272, 52%, 36%)
HSVhsv(272, 69%, 55%)
CMYKcmyk(32.6%, 68.8%, 0%, 44.7%)
CIE-LABlab(29.81, 41.91, -44.84)
CIE-LCHlch(29.81, 61.38, 313.07°)
OKLaboklab(41.33% 0.0877 -0.1273)
OKLCHoklch(41.33% 0.155 304.6)
XYZxyz(10.4266, 6.1574, 25.8333)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2C8D #5A8D2C
analogous
#2F2C8D #5F2C8D #8D2C8B
triadic
#5F2C8D #8D5F2C #2C8D5F
tetradic
#5F2C8D #8D2F2C #5A8D2C #2C8B8D
square
#5F2C8D #8D2F2C #5A8D2C #2C8B8D
split-complementary
#5F2C8D #8B8D2C #2C8D2F
monochromatic
#200F30 #401D5E #5F2C8D #7E3BBC #9C65CF

Accessibility & contrast

On white

9.41
#5F2C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5F2C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2C8D
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2C8D#FFFFFF#000000##FFFFFF
##5F2C8D1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#0A468B
Tritanopia (blue-blind)
#564259
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f2c8d;
/* rgb */ color: rgb(95, 44, 141);
/* oklch */ color: oklch(41.3% 0.155 304.6);
Tailwind
colors: {
  custom: {
    50: '#9069af',
    500: '#5f2c8d',
    950: '#000000',
  },
}
SCSS
$custom: #5f2c8d;
$custom-light: #9069af;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2c8d",
  "rgb": {
    "r": 95,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 271.546,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41326,
    "c": 0.15459,
    "h": 304.6
  },
  "luminance": 0.06157
}

Semantic roles & 50–950 ramp

primary
#5F2C8D
secondary
#88B560
accent
#DC4C90
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F2C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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