#5A26A3#5A26A3

#5A26A3 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.186 H 296.2°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#5A26A3
RGBrgb(90, 38, 163)
HSLhsl(265, 62%, 39%)
HSVhsv(265, 77%, 64%)
CMYKcmyk(44.8%, 76.7%, 0%, 36.1%)
CIE-LABlab(29.92, 49.50, -58.13)
CIE-LCHlch(29.92, 76.35, 310.41°)
OKLaboklab(41.82% 0.0821 -0.1665)
OKLCHoklch(41.82% 0.186 296.2)
XYZxyz(11.5187, 6.2040, 35.2338)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A26A3 #6FA326
analogous
#2631A3 #5A26A3 #9926A3
triadic
#5A26A3 #A35A26 #26A35A
tetradic
#5A26A3 #A32631 #6FA326 #26A399
square
#5A26A3 #A32631 #6FA326 #26A399
split-complementary
#5A26A3 #A39926 #31A326
monochromatic
#230F40 #3F1A71 #5A26A3 #7636D0 #9868DC

Accessibility & contrast

On white

9.37
#5A26A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5A26A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A26A3
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A26A3#FFFFFF#000000##FFFFFF
##5A26A31.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A7
Deuteranopia (green-blind)
#0045A1
Tritanopia (blue-blind)
#464863
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a26a3;
/* rgb */ color: rgb(90, 38, 163);
/* oklch */ color: oklch(41.8% 0.186 296.2);
Tailwind
colors: {
  custom: {
    50: '#9066bf',
    500: '#5a26a3',
    950: '#000000',
  },
}
SCSS
$custom: #5a26a3;
$custom-light: #9066bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a26a3",
  "rgb": {
    "r": 90,
    "g": 38,
    "b": 163
  },
  "hsl": {
    "h": 264.96,
    "s": 62.189,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41823,
    "c": 0.18563,
    "h": 296.2
  },
  "luminance": 0.06204
}

Semantic roles & 50–950 ramp

primary
#5A26A3
secondary
#9AC263
accent
#E543A2
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A26A3

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

Preview Lab → · Contrast checker → · Palette generator →

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