#5626A2#5626A2

#5626A2 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.184 H 294.5°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#5626A2
RGBrgb(86, 38, 162)
HSLhsl(263, 62%, 39%)
HSVhsv(263, 77%, 64%)
CMYKcmyk(46.9%, 76.5%, 0%, 36.5%)
CIE-LABlab(29.34, 48.59, -58.49)
CIE-LCHlch(29.34, 76.04, 309.71°)
OKLaboklab(41.28% 0.0763 -0.1677)
OKLCHoklch(41.28% 0.184 294.5)
XYZxyz(11.0507, 5.9730, 34.7461)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5626A2 #72A226
analogous
#2634A2 #5626A2 #9426A2
triadic
#5626A2 #A25626 #26A256
tetradic
#5626A2 #A22634 #72A226 #26A294
square
#5626A2 #A22634 #72A226 #26A294
split-complementary
#5626A2 #A29426 #34A226
monochromatic
#210F3F #3C1A70 #5626A2 #7135D0 #9467DB

Accessibility & contrast

On white

9.57
#5626A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5626A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5626A2
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5626A2#FFFFFF#000000##FFFFFF
##5626A21.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A6
Deuteranopia (green-blind)
#0043A0
Tritanopia (blue-blind)
#404863
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5626a2;
/* rgb */ color: rgb(86, 38, 162);
/* oklch */ color: oklch(41.3% 0.184 294.5);
Tailwind
colors: {
  custom: {
    50: '#8d66bf',
    500: '#5626a2',
    950: '#000000',
  },
}
SCSS
$custom: #5626a2;
$custom-light: #8d66bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5626a2",
  "rgb": {
    "r": 86,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 263.226,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41281,
    "c": 0.18422,
    "h": 294.5
  },
  "luminance": 0.05973
}

Semantic roles & 50–950 ramp

primary
#5626A2
secondary
#9DC163
accent
#E543A6
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5626A2

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

Preview Lab → · Contrast checker → · Palette generator →

#5626A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva