#5638AA#5638AA

#5638AA is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.4% C 0.173 H 289.6°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#5638AA
RGBrgb(86, 56, 170)
HSLhsl(256, 50%, 44%)
HSVhsv(256, 67%, 67%)
CMYKcmyk(49.4%, 67.1%, 0%, 33.3%)
CIE-LABlab(33.37, 41.51, -56.74)
CIE-LCHlch(33.37, 70.30, 306.19°)
OKLaboklab(44.35% 0.0578 -0.1626)
OKLCHoklch(44.35% 0.173 289.6)
XYZxyz(12.5055, 7.7085, 38.8514)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5638AA #8CAA38
analogous
#3853AA #5638AA #8F38AA
triadic
#5638AA #AA5638 #38AA56
tetradic
#5638AA #AA3853 #8CAA38 #38AA8F
square
#5638AA #AA3853 #8CAA38 #38AA8F
split-complementary
#5638AA #AA8F38 #53AA38
monochromatic
#271A4E #3F297C #5638AA #7557C8 #9B85D7

Accessibility & contrast

On white

8.26
#5638AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5638AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5638AA
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5638AA#FFFFFF#000000##FFFFFF
##5638AA1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#004CA8
Tritanopia (blue-blind)
#3A546C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5638aa;
/* rgb */ color: rgb(86, 56, 170);
/* oklch */ color: oklch(44.4% 0.173 289.6);
Tailwind
colors: {
  custom: {
    50: '#8d71c4',
    500: '#5638aa',
    950: '#000000',
  },
}
SCSS
$custom: #5638aa;
$custom-light: #8d71c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5638aa",
  "rgb": {
    "r": 86,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 255.789,
    "s": 50.442,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44354,
    "c": 0.17257,
    "h": 289.6
  },
  "luminance": 0.07709
}

Semantic roles & 50–950 ramp

primary
#5638AA
secondary
#AFC17D
accent
#DA4EB5
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5638AA

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

Preview Lab → · Contrast checker → · Palette generator →

#5638AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva