#5626A4#5626A4

#5626A4 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.5% C 0.186 H 294.0°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#5626A4
RGBrgb(86, 38, 164)
HSLhsl(263, 62%, 40%)
HSVhsv(263, 77%, 64%)
CMYKcmyk(47.6%, 76.8%, 0%, 35.7%)
CIE-LABlab(29.52, 49.12, -59.41)
CIE-LCHlch(29.52, 77.08, 309.59°)
OKLaboklab(41.46% 0.0757 -0.1704)
OKLCHoklch(41.46% 0.186 294)
XYZxyz(11.2299, 6.0447, 35.6898)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5626A4 #74A426
analogous
#2635A4 #5626A4 #9526A4
triadic
#5626A4 #A45626 #26A456
tetradic
#5626A4 #A42635 #74A426 #26A495
square
#5626A4 #A42635 #74A426 #26A495
split-complementary
#5626A4 #A49526 #35A426
monochromatic
#220F41 #3C1A72 #5626A4 #7137D1 #9468DC

Accessibility & contrast

On white

9.51
#5626A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5626A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5626A4
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5626A4#FFFFFF#000000##FFFFFF
##5626A41.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A8
Deuteranopia (green-blind)
#0043A2
Tritanopia (blue-blind)
#3F4864
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5626a4;
/* rgb */ color: rgb(86, 38, 164);
/* oklch */ color: oklch(41.5% 0.186 294.0);
Tailwind
colors: {
  custom: {
    50: '#8e66c0',
    500: '#5626a4',
    950: '#000000',
  },
}
SCSS
$custom: #5626a4;
$custom-light: #8e66c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5626a4",
  "rgb": {
    "r": 86,
    "g": 38,
    "b": 164
  },
  "hsl": {
    "h": 262.857,
    "s": 62.376,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41463,
    "c": 0.18645,
    "h": 294
  },
  "luminance": 0.06045
}

Semantic roles & 50–950 ramp

primary
#5626A4
secondary
#9EC264
accent
#E542A7
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5626A4

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

Preview Lab → · Contrast checker → · Palette generator →

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