#5C26A5#5C26A5

#5C26A5 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.188 H 296.7°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#5C26A5
RGBrgb(92, 38, 165)
HSLhsl(266, 63%, 40%)
HSVhsv(266, 77%, 65%)
CMYKcmyk(44.2%, 77%, 0%, 35.3%)
CIE-LABlab(30.35, 50.34, -58.64)
CIE-LCHlch(30.35, 77.28, 310.65°)
OKLaboklab(42.23% 0.0846 -0.1679)
OKLCHoklch(42.23% 0.188 296.7)
XYZxyz(11.8965, 6.3779, 36.1943)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C26A5 #6FA526
analogous
#262FA5 #5C26A5 #9C26A5
triadic
#5C26A5 #A55C26 #26A55C
tetradic
#5C26A5 #A5262F #6FA526 #26A59C
square
#5C26A5 #A5262F #6FA526 #26A59C
split-complementary
#5C26A5 #A59C26 #2FA526
monochromatic
#250F42 #401B73 #5C26A5 #7937D1 #9A69DC

Accessibility & contrast

On white

9.23
#5C26A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5C26A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C26A5
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C26A5#FFFFFF#000000##FFFFFF
##5C26A51.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A9
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#484864
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5c26a5;
/* rgb */ color: rgb(92, 38, 165);
/* oklch */ color: oklch(42.2% 0.188 296.7);
Tailwind
colors: {
  custom: {
    50: '#9166c1',
    500: '#5c26a5',
    950: '#000000',
  },
}
SCSS
$custom: #5c26a5;
$custom-light: #9166c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c26a5",
  "rgb": {
    "r": 92,
    "g": 38,
    "b": 165
  },
  "hsl": {
    "h": 265.512,
    "s": 62.562,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42231,
    "c": 0.188,
    "h": 296.7
  },
  "luminance": 0.06378
}

Semantic roles & 50–950 ramp

primary
#5C26A5
secondary
#9AC364
accent
#E642A0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5C26A5

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

Preview Lab → · Contrast checker → · Palette generator →

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