#5C26A2#5C26A2

#5C26A2 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.185 H 297.5°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#5C26A2
RGBrgb(92, 38, 162)
HSLhsl(266, 62%, 39%)
HSVhsv(266, 77%, 64%)
CMYKcmyk(43.2%, 76.5%, 0%, 36.5%)
CIE-LABlab(30.08, 49.57, -57.25)
CIE-LCHlch(30.08, 75.73, 310.88°)
OKLaboklab(41.97% 0.0854 -0.1638)
OKLCHoklch(41.97% 0.185 297.5)
XYZxyz(11.6266, 6.2700, 34.7731)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C26A2 #6CA226
analogous
#262EA2 #5C26A2 #9A26A2
triadic
#5C26A2 #A25C26 #26A25C
tetradic
#5C26A2 #A2262E #6CA226 #26A29A
square
#5C26A2 #A2262E #6CA226 #26A29A
split-complementary
#5C26A2 #A29A26 #2EA226
monochromatic
#240F3F #401A70 #5C26A2 #7935D0 #9A67DB

Accessibility & contrast

On white

9.32
#5C26A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5C26A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C26A2
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C26A2#FFFFFF#000000##FFFFFF
##5C26A21.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#4A4763
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5c26a2;
/* rgb */ color: rgb(92, 38, 162);
/* oklch */ color: oklch(42.0% 0.185 297.5);
Tailwind
colors: {
  custom: {
    50: '#9166bf',
    500: '#5c26a2',
    950: '#000000',
  },
}
SCSS
$custom: #5c26a2;
$custom-light: #9166bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5c26a2",
  "rgb": {
    "r": 92,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 266.129,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41965,
    "c": 0.18474,
    "h": 297.5
  },
  "luminance": 0.0627
}

Semantic roles & 50–950 ramp

primary
#5C26A2
secondary
#98C163
accent
#E5439E
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5C26A2

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

Preview Lab → · Contrast checker → · Palette generator →

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