#5C258F#5C258F

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

Color values

HEX#5C258F
RGBrgb(92, 37, 143)
HSLhsl(271, 59%, 35%)
HSVhsv(271, 74%, 56%)
CMYKcmyk(35.7%, 74.1%, 0%, 43.9%)
CIE-LABlab(28.33, 45.21, -48.48)
CIE-LCHlch(28.33, 66.29, 313.00°)
OKLaboklab(40.24% 0.0907 -0.1381)
OKLCHoklch(40.24% 0.165 303.3)
XYZxyz(10.0320, 5.5816, 26.5301)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C258F #588F25
analogous
#27258F #5C258F #8F258D
triadic
#5C258F #8F5C25 #258F5C
tetradic
#5C258F #8F2725 #588F25 #258D8F
square
#5C258F #8F2725 #588F25 #258D8F
split-complementary
#5C258F #8D8F25 #258F27
monochromatic
#1D0C2E #3D185E #5C258F #7B32C0 #9A5AD4

Accessibility & contrast

On white

9.92
#5C258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5C258F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C258F
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C258F#FFFFFF#000000##FFFFFF
##5C258F1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#523F58
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5c258f;
/* rgb */ color: rgb(92, 37, 143);
/* oklch */ color: oklch(40.2% 0.165 303.3);
Tailwind
colors: {
  custom: {
    50: '#8f65b1',
    500: '#5c258f',
    950: '#000000',
  },
}
SCSS
$custom: #5c258f;
$custom-light: #8f65b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c258f",
  "rgb": {
    "r": 92,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 271.132,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40236,
    "c": 0.1652,
    "h": 303.3
  },
  "luminance": 0.05582
}

Semantic roles & 50–950 ramp

primary
#5C258F
secondary
#86B957
accent
#E24691
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C258F

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

Preview Lab → · Contrast checker → · Palette generator →

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