#5638CB#5638CB

#5638CB is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.3% C 0.212 H 284.1°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#5638CB
RGBrgb(86, 56, 203)
HSLhsl(252, 59%, 51%)
HSVhsv(252, 72%, 80%)
CMYKcmyk(57.6%, 72.4%, 0%, 20.4%)
CIE-LABlab(36.21, 51.20, -71.55)
CIE-LCHlch(36.21, 87.98, 305.58°)
OKLaboklab(47.26% 0.0518 -0.2061)
OKLCHoklch(47.26% 0.212 284.1)
XYZxyz(16.0281, 9.1176, 57.4036)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5638CB #ADCB38
analogous
#3863CB #5638CB #9F38CB
triadic
#5638CB #CB5638 #38CB56
tetradic
#5638CB #CB3863 #ADCB38 #38CB9F
square
#5638CB #CB3863 #ADCB38 #38CB9F
split-complementary
#5638CB #CB9F38 #63CB38
monochromatic
#2D1C6C #41299D #5638CB #7F69D8 #A899E4

Accessibility & contrast

On white

7.44
#5638CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5638CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5638CB#FFFFFF#000000##FFFFFF
##5638CB1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CF
Deuteranopia (green-blind)
#0050C8
Tritanopia (blue-blind)
#14607E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5638cb;
/* rgb */ color: rgb(86, 56, 203);
/* oklch */ color: oklch(47.3% 0.212 284.1);
Tailwind
colors: {
  custom: {
    50: '#9272dc',
    500: '#5638cb',
    950: '#000000',
  },
}
SCSS
$custom: #5638cb;
$custom-light: #9272dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5638cb",
  "rgb": {
    "r": 86,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 252.245,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47257,
    "c": 0.21249,
    "h": 284.1
  },
  "luminance": 0.09119
}

Semantic roles & 50–950 ramp

primary
#5638CB
secondary
#C3D08F
accent
#E246C2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5638CB

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

Preview Lab → · Contrast checker → · Palette generator →

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