#5638CA#5638CA

#5638CA is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.2% C 0.211 H 284.2°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#5638CA
RGBrgb(86, 56, 202)
HSLhsl(252, 58%, 51%)
HSVhsv(252, 72%, 79%)
CMYKcmyk(57.4%, 72.3%, 0%, 20.8%)
CIE-LABlab(36.12, 50.90, -71.12)
CIE-LCHlch(36.12, 87.46, 305.59°)
OKLaboklab(47.17% 0.052 -0.2048)
OKLCHoklch(47.17% 0.211 284.2)
XYZxyz(15.9093, 9.0701, 56.7780)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5638CA #ACCA38
analogous
#3863CA #5638CA #9F38CA
triadic
#5638CA #CA5638 #38CA56
tetradic
#5638CA #CA3863 #ACCA38 #38CA9F
square
#5638CA #CA3863 #ACCA38 #38CA9F
split-complementary
#5638CA #CA9F38 #63CA38
monochromatic
#2D1D6B #41299B #5638CA #7F68D7 #A899E4

Accessibility & contrast

On white

7.46
#5638CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5638CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5638CA#FFFFFF#000000##FFFFFF
##5638CA1.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CE
Deuteranopia (green-blind)
#0050C7
Tritanopia (blue-blind)
#16607E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5638ca;
/* rgb */ color: rgb(86, 56, 202);
/* oklch */ color: oklch(47.2% 0.211 284.2);
Tailwind
colors: {
  custom: {
    50: '#9272db',
    500: '#5638ca',
    950: '#000000',
  },
}
SCSS
$custom: #5638ca;
$custom-light: #9272db;
$custom-dark: #000000;
JSON
{
  "hex": "#5638ca",
  "rgb": {
    "r": 86,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 252.329,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47165,
    "c": 0.21131,
    "h": 284.2
  },
  "luminance": 0.09071
}

Semantic roles & 50–950 ramp

primary
#5638CA
secondary
#C2CF8E
accent
#E147C1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5638CA

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

Preview Lab → · Contrast checker → · Palette generator →

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