#5C2E9B#5C2E9B

#5C2E9B is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.168 H 298.2°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#5C2E9B
RGBrgb(92, 46, 155)
HSLhsl(265, 54%, 39%)
HSVhsv(265, 70%, 61%)
CMYKcmyk(40.6%, 70.3%, 0%, 39.2%)
CIE-LABlab(30.87, 43.88, -51.72)
CIE-LCHlch(30.87, 67.83, 310.31°)
OKLaboklab(42.34% 0.0791 -0.1476)
OKLCHoklch(42.34% 0.168 298.2)
XYZxyz(11.3055, 6.5957, 31.6814)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2E9B #6D9B2E
analogous
#2E379B #5C2E9B #932E9B
triadic
#5C2E9B #9B5C2E #2E9B5C
tetradic
#5C2E9B #9B2E37 #6D9B2E #2E9B93
square
#5C2E9B #9B2E37 #6D9B2E #2E9B93
split-complementary
#5C2E9B #9B932E #379B2E
monochromatic
#24123D #40206C #5C2E9B #7940C6 #9A6FD4

Accessibility & contrast

On white

9.05
#5C2E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5C2E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2E9B
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2E9B#FFFFFF#000000##FFFFFF
##5C2E9B1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#004799
Tritanopia (blue-blind)
#4D4861
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5c2e9b;
/* rgb */ color: rgb(92, 46, 155);
/* oklch */ color: oklch(42.3% 0.168 298.2);
Tailwind
colors: {
  custom: {
    50: '#906ab9',
    500: '#5c2e9b',
    950: '#000000',
  },
}
SCSS
$custom: #5c2e9b;
$custom-light: #906ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2e9b",
  "rgb": {
    "r": 92,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 265.321,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4234,
    "c": 0.16751,
    "h": 298.2
  },
  "luminance": 0.06596
}

Semantic roles & 50–950 ramp

primary
#5C2E9B
secondary
#99BC69
accent
#DE4A9F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C2E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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