#5B258C#5B258C

#5B258C is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.162 H 303.7°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#5B258C
RGBrgb(91, 37, 140)
HSLhsl(271, 58%, 35%)
HSVhsv(271, 74%, 55%)
CMYKcmyk(35%, 73.6%, 0%, 45.1%)
CIE-LABlab(27.96, 44.26, -47.24)
CIE-LCHlch(27.96, 64.74, 313.13°)
OKLaboklab(39.87% 0.0898 -0.1345)
OKLCHoklch(39.87% 0.162 303.7)
XYZxyz(9.7085, 5.4408, 25.3446)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B258C #568C25
analogous
#27258C #5B258C #8C258A
triadic
#5B258C #8C5B25 #258C5B
tetradic
#5B258C #8C2725 #568C25 #258A8C
square
#5B258C #8C2725 #568C25 #258A8C
split-complementary
#5B258C #8A8C25 #258C27
monochromatic
#1C0B2B #3C185C #5B258C #7A32BC #9958D3

Accessibility & contrast

On white

10.06
#5B258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B258C
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B258C#FFFFFF#000000##FFFFFF
##5B258C1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418F
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#513E56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b258c;
/* rgb */ color: rgb(91, 37, 140);
/* oklch */ color: oklch(39.9% 0.162 303.7);
Tailwind
colors: {
  custom: {
    50: '#8e65ae',
    500: '#5b258c',
    950: '#000000',
  },
}
SCSS
$custom: #5b258c;
$custom-light: #8e65ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5b258c",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 271.456,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39865,
    "c": 0.1617,
    "h": 303.7
  },
  "luminance": 0.05441
}

Semantic roles & 50–950 ramp

primary
#5B258C
secondary
#84B855
accent
#E14690
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5B258C

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

Preview Lab → · Contrast checker → · Palette generator →

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