#5626AB#5626AB

#5626AB is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.194 H 292.3°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#5626AB
RGBrgb(86, 38, 171)
HSLhsl(262, 64%, 41%)
HSVhsv(262, 78%, 67%)
CMYKcmyk(49.7%, 77.8%, 0%, 32.9%)
CIE-LABlab(30.17, 50.99, -62.57)
CIE-LCHlch(30.17, 80.72, 309.18°)
OKLaboklab(42.11% 0.0737 -0.1796)
OKLCHoklch(42.11% 0.194 292.3)
XYZxyz(11.8795, 6.3045, 39.1111)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5626AB #7BAB26
analogous
#2639AB #5626AB #9826AB
triadic
#5626AB #AB5626 #26AB56
tetradic
#5626AB #AB2639 #7BAB26 #26AB98
square
#5626AB #AB2639 #7BAB26 #26AB98
split-complementary
#5626AB #AB9826 #39AB26
monochromatic
#241047 #3D1B79 #5626AB #723BD3 #966DDF

Accessibility & contrast

On white

9.29
#5626AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5626AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5626AB
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5626AB#FFFFFF#000000##FFFFFF
##5626AB1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AF
Deuteranopia (green-blind)
#0044A9
Tritanopia (blue-blind)
#3A4B68
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5626ab;
/* rgb */ color: rgb(86, 38, 171);
/* oklch */ color: oklch(42.1% 0.194 292.3);
Tailwind
colors: {
  custom: {
    50: '#8f66c5',
    500: '#5626ab',
    950: '#000000',
  },
}
SCSS
$custom: #5626ab;
$custom-light: #8f66c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5626ab",
  "rgb": {
    "r": 86,
    "g": 38,
    "b": 171
  },
  "hsl": {
    "h": 261.654,
    "s": 63.636,
    "l": 40.98
  },
  "oklch": {
    "l": 0.4211,
    "c": 0.1942,
    "h": 292.3
  },
  "luminance": 0.06305
}

Semantic roles & 50–950 ramp

primary
#5626AB
secondary
#A3C568
accent
#E741AB
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5626AB

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

Preview Lab → · Contrast checker → · Palette generator →

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