#5C258E#5C258E

#5C258E is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.164 H 303.6°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#5C258E
RGBrgb(92, 37, 142)
HSLhsl(271, 59%, 35%)
HSVhsv(271, 74%, 56%)
CMYKcmyk(35.2%, 73.9%, 0%, 44.3%)
CIE-LABlab(28.25, 44.96, -48.00)
CIE-LCHlch(28.25, 65.77, 313.13°)
OKLaboklab(40.15% 0.0909 -0.1366)
OKLCHoklch(40.15% 0.164 303.6)
XYZxyz(9.9566, 5.5515, 26.1329)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C258E #578E25
analogous
#28258E #5C258E #8E258B
triadic
#5C258E #8E5C25 #258E5C
tetradic
#5C258E #8E2825 #578E25 #258B8E
square
#5C258E #8E2825 #578E25 #258B8E
split-complementary
#5C258E #8B8E25 #258E28
monochromatic
#1D0C2D #3D185D #5C258E #7B32BF #9A5AD4

Accessibility & contrast

On white

9.95
#5C258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5C258E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C258E
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C258E#FFFFFF#000000##FFFFFF
##5C258E1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#523E57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5c258e;
/* rgb */ color: rgb(92, 37, 142);
/* oklch */ color: oklch(40.2% 0.164 303.6);
Tailwind
colors: {
  custom: {
    50: '#8f65b0',
    500: '#5c258e',
    950: '#000000',
  },
}
SCSS
$custom: #5c258e;
$custom-light: #8f65b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c258e",
  "rgb": {
    "r": 92,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 271.429,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40154,
    "c": 0.16411,
    "h": 303.6
  },
  "luminance": 0.05551
}

Semantic roles & 50–950 ramp

primary
#5C258E
secondary
#85B956
accent
#E24690
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5C258E

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

Preview Lab → · Contrast checker → · Palette generator →

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