#5C26A3#5C26A3

#5C26A3 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.186 H 297.3°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#5C26A3
RGBrgb(92, 38, 163)
HSLhsl(266, 62%, 39%)
HSVhsv(266, 77%, 64%)
CMYKcmyk(43.6%, 76.7%, 0%, 36.1%)
CIE-LABlab(30.17, 49.82, -57.72)
CIE-LCHlch(30.17, 76.25, 310.80°)
OKLaboklab(42.05% 0.0851 -0.1652)
OKLCHoklch(42.05% 0.186 297.3)
XYZxyz(11.7159, 6.3057, 35.2431)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C26A3 #6DA326
analogous
#262FA3 #5C26A3 #9B26A3
triadic
#5C26A3 #A35C26 #26A35C
tetradic
#5C26A3 #A3262F #6DA326 #26A39B
square
#5C26A3 #A3262F #6DA326 #26A39B
split-complementary
#5C26A3 #A39B26 #2FA326
monochromatic
#240F40 #401A71 #5C26A3 #7936D0 #9A68DC

Accessibility & contrast

On white

9.29
#5C26A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5C26A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C26A3
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C26A3#FFFFFF#000000##FFFFFF
##5C26A31.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A7
Deuteranopia (green-blind)
#0046A1
Tritanopia (blue-blind)
#494763
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5c26a3;
/* rgb */ color: rgb(92, 38, 163);
/* oklch */ color: oklch(42.1% 0.186 297.3);
Tailwind
colors: {
  custom: {
    50: '#9166bf',
    500: '#5c26a3',
    950: '#000000',
  },
}
SCSS
$custom: #5c26a3;
$custom-light: #9166bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5c26a3",
  "rgb": {
    "r": 92,
    "g": 38,
    "b": 163
  },
  "hsl": {
    "h": 265.92,
    "s": 62.189,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42054,
    "c": 0.18583,
    "h": 297.3
  },
  "luminance": 0.06306
}

Semantic roles & 50–950 ramp

primary
#5C26A3
secondary
#99C263
accent
#E5439F
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5C26A3

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

Preview Lab → · Contrast checker → · Palette generator →

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