#5638C5#5638C5

#5638C5 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.7% C 0.205 H 285.0°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5638C5
RGBrgb(86, 56, 197)
HSLhsl(253, 56%, 50%)
HSVhsv(253, 72%, 77%)
CMYKcmyk(56.3%, 71.6%, 0%, 22.7%)
CIE-LABlab(35.67, 49.44, -68.94)
CIE-LCHlch(35.67, 84.84, 305.65°)
OKLaboklab(46.71% 0.0531 -0.1984)
OKLCHoklch(46.71% 0.205 285)
XYZxyz(15.3269, 8.8371, 53.7106)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5638C5 #A7C538
analogous
#3861C5 #5638C5 #9D38C5
triadic
#5638C5 #C55638 #38C556
tetradic
#5638C5 #C53861 #A7C538 #38C59D
square
#5638C5 #C53861 #A7C538 #38C59D
split-complementary
#5638C5 #C59D38 #61C538
monochromatic
#2C1D66 #412A95 #5638C5 #7E67D4 #A696E1

Accessibility & contrast

On white

7.59
#5638C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5638C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5638C5#FFFFFF#000000##FFFFFF
##5638C51.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C9
Deuteranopia (green-blind)
#004FC2
Tritanopia (blue-blind)
#1F5E7B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5638c5;
/* rgb */ color: rgb(86, 56, 197);
/* oklch */ color: oklch(46.7% 0.205 285.0);
Tailwind
colors: {
  custom: {
    50: '#9172d8',
    500: '#5638c5',
    950: '#000000',
  },
}
SCSS
$custom: #5638c5;
$custom-light: #9172d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5638c5",
  "rgb": {
    "r": 86,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 252.766,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46709,
    "c": 0.20541,
    "h": 285
  },
  "luminance": 0.08838
}

Semantic roles & 50–950 ramp

primary
#5638C5
secondary
#BFCD8C
accent
#DF49BF
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5638C5

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

Preview Lab → · Contrast checker → · Palette generator →

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