#5626B1#5626B1

#5626B1 is a dark, highly saturated violet. Relative luminance 0.065; OKLCH L 42.7% C 0.201 H 291.0°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#5626B1
RGBrgb(86, 38, 177)
HSLhsl(261, 65%, 42%)
HSVhsv(261, 79%, 69%)
CMYKcmyk(51.4%, 78.5%, 0%, 30.6%)
CIE-LABlab(30.73, 52.60, -65.24)
CIE-LCHlch(30.73, 83.80, 308.88°)
OKLaboklab(42.68% 0.072 -0.1875)
OKLCHoklch(42.68% 0.201 291)
XYZxyz(12.4644, 6.5385, 42.1917)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5626B1 #81B126
analogous
#263CB1 #5626B1 #9B26B1
triadic
#5626B1 #B15626 #26B156
tetradic
#5626B1 #B1263C #81B126 #26B19B
square
#5626B1 #B1263C #81B126 #26B19B
split-complementary
#5626B1 #B19B26 #3CB126
monochromatic
#25104C #3E1B7F #5626B1 #733FD6 #9771E0

Accessibility & contrast

On white

9.10
#5626B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5626B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5626B1
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5626B1#FFFFFF#000000##FFFFFF
##5626B11.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#0045AE
Tritanopia (blue-blind)
#364E6B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5626b1;
/* rgb */ color: rgb(86, 38, 177);
/* oklch */ color: oklch(42.7% 0.201 291.0);
Tailwind
colors: {
  custom: {
    50: '#8f67c9',
    500: '#5626b1',
    950: '#000000',
  },
}
SCSS
$custom: #5626b1;
$custom-light: #8f67c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5626b1",
  "rgb": {
    "r": 86,
    "g": 38,
    "b": 177
  },
  "hsl": {
    "h": 260.719,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42675,
    "c": 0.20079,
    "h": 291
  },
  "luminance": 0.06539
}

Semantic roles & 50–950 ramp

primary
#5626B1
secondary
#A8C76B
accent
#E840AE
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5626B1

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

Preview Lab → · Contrast checker → · Palette generator →

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