#5C258B#5C258B

#5C258B is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.9% C 0.161 H 304.7°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#5C258B
RGBrgb(92, 37, 139)
HSLhsl(272, 58%, 35%)
HSVhsv(272, 73%, 55%)
CMYKcmyk(33.8%, 73.4%, 0%, 45.5%)
CIE-LABlab(28.01, 44.22, -46.52)
CIE-LCHlch(28.01, 64.18, 313.55°)
OKLaboklab(39.91% 0.0915 -0.1323)
OKLCHoklch(39.91% 0.161 304.7)
XYZxyz(9.7343, 5.4626, 24.9626)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C258B #548B25
analogous
#29258B #5C258B #8B2587
triadic
#5C258B #8B5C25 #258B5C
tetradic
#5C258B #8B2925 #548B25 #25878B
square
#5C258B #8B2925 #548B25 #25878B
split-complementary
#5C258B #878B25 #258B29
monochromatic
#1C0B2A #3C185B #5C258B #7C32BB #9A58D3

Accessibility & contrast

On white

10.04
#5C258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C258B
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C258B#FFFFFF#000000##FFFFFF
##5C258B1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#533D55
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5c258b;
/* rgb */ color: rgb(92, 37, 139);
/* oklch */ color: oklch(39.9% 0.161 304.7);
Tailwind
colors: {
  custom: {
    50: '#8f65ae',
    500: '#5c258b',
    950: '#000000',
  },
}
SCSS
$custom: #5c258b;
$custom-light: #8f65ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5c258b",
  "rgb": {
    "r": 92,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 272.353,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39911,
    "c": 0.16083,
    "h": 304.7
  },
  "luminance": 0.05463
}

Semantic roles & 50–950 ramp

primary
#5C258B
secondary
#82B755
accent
#E1478E
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5C258B

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

Preview Lab → · Contrast checker → · Palette generator →

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