#5C2F85#5C2F85

#5C2F85 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.8% C 0.140 H 305.1°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#5C2F85
RGBrgb(92, 47, 133)
HSLhsl(271, 48%, 35%)
HSVhsv(271, 65%, 52%)
CMYKcmyk(30.8%, 64.7%, 0%, 47.8%)
CIE-LABlab(29.42, 37.60, -40.52)
CIE-LCHlch(29.42, 55.28, 312.86°)
OKLaboklab(40.78% 0.0805 -0.1147)
OKLCHoklch(40.78% 0.14 305.1)
XYZxyz(9.6629, 6.0019, 22.8352)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2F85 #58852F
analogous
#312F85 #5C2F85 #852F83
triadic
#5C2F85 #855C2F #2F855C
tetradic
#5C2F85 #85312F #58852F #2F8385
square
#5C2F85 #85312F #58852F #2F8385
split-complementary
#5C2F85 #83852F #2F8531
monochromatic
#1D0F2B #3D1F58 #5C2F85 #7B3FB2 #9A66C9

Accessibility & contrast

On white

9.54
#5C2F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5C2F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2F85
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2F85#FFFFFF#000000##FFFFFF
##5C2F851.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004488
Deuteranopia (green-blind)
#1A4583
Tritanopia (blue-blind)
#554155
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5c2f85;
/* rgb */ color: rgb(92, 47, 133);
/* oklch */ color: oklch(40.8% 0.140 305.1);
Tailwind
colors: {
  custom: {
    50: '#8d6aa9',
    500: '#5c2f85',
    950: '#000000',
  },
}
SCSS
$custom: #5c2f85;
$custom-light: #8d6aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2f85",
  "rgb": {
    "r": 92,
    "g": 47,
    "b": 133
  },
  "hsl": {
    "h": 271.395,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40777,
    "c": 0.14015,
    "h": 305.1
  },
  "luminance": 0.06002
}

Semantic roles & 50–950 ramp

primary
#5C2F85
secondary
#86B060
accent
#D75091
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0710
muted
#7D7A7F

Preview Lab

Preview with #5C2F85

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

Preview Lab → · Contrast checker → · Palette generator →

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