#5C2F87#5C2F87

#5C2F87 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 40.9% C 0.143 H 304.3°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#5C2F87
RGBrgb(92, 47, 135)
HSLhsl(271, 48%, 36%)
HSVhsv(271, 65%, 53%)
CMYKcmyk(31.9%, 65.2%, 0%, 47.1%)
CIE-LABlab(29.56, 38.11, -41.54)
CIE-LCHlch(29.56, 56.37, 312.53°)
OKLaboklab(40.92% 0.0804 -0.1177)
OKLCHoklch(40.92% 0.143 304.3)
XYZxyz(9.8023, 6.0576, 23.5698)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2F87 #5A872F
analogous
#302F87 #5C2F87 #872F86
triadic
#5C2F87 #875C2F #2F875C
tetradic
#5C2F87 #87302F #5A872F #2F8687
square
#5C2F87 #87302F #5A872F #2F8687
split-complementary
#5C2F87 #86872F #2F8730
monochromatic
#1E0F2C #3D1F5A #5C2F87 #7B3FB4 #9966CA

Accessibility & contrast

On white

9.50
#5C2F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5C2F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2F87
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2F87#FFFFFF#000000##FFFFFF
##5C2F871.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#174685
Tritanopia (blue-blind)
#544256
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5c2f87;
/* rgb */ color: rgb(92, 47, 135);
/* oklch */ color: oklch(40.9% 0.143 304.3);
Tailwind
colors: {
  custom: {
    50: '#8e6aaa',
    500: '#5c2f87',
    950: '#000000',
  },
}
SCSS
$custom: #5c2f87;
$custom-light: #8e6aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2f87",
  "rgb": {
    "r": 92,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 270.682,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40923,
    "c": 0.14254,
    "h": 304.3
  },
  "luminance": 0.06058
}

Semantic roles & 50–950 ramp

primary
#5C2F87
secondary
#88B161
accent
#D85092
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0710
muted
#7D7A7F

Preview Lab

Preview with #5C2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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