#5634C2#5634C2

#5634C2 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 45.9% C 0.206 H 286.0°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#5634C2
RGBrgb(86, 52, 194)
HSLhsl(254, 58%, 48%)
HSVhsv(254, 73%, 76%)
CMYKcmyk(55.7%, 73.2%, 0%, 23.9%)
CIE-LABlab(34.66, 50.64, -68.84)
CIE-LCHlch(34.66, 85.47, 306.34°)
OKLaboklab(45.91% 0.0569 -0.1981)
OKLCHoklch(45.91% 0.206 286)
XYZxyz(14.8004, 8.3286, 51.8562)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5634C2 #A0C234
analogous
#3459C2 #5634C2 #9D34C2
triadic
#5634C2 #C25634 #34C256
tetradic
#5634C2 #C23459 #A0C234 #34C29D
square
#5634C2 #C23459 #A0C234 #34C29D
split-complementary
#5634C2 #C29D34 #59C234
monochromatic
#2B1A61 #412792 #5634C2 #7B5FD4 #A38FE1

Accessibility & contrast

On white

7.88
#5634C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5634C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5634C2
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5634C2#FFFFFF#000000##FFFFFF
##5634C21.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C6
Deuteranopia (green-blind)
#004DBF
Tritanopia (blue-blind)
#245B78
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5634c2;
/* rgb */ color: rgb(86, 52, 194);
/* oklch */ color: oklch(45.9% 0.206 286.0);
Tailwind
colors: {
  custom: {
    50: '#916fd6',
    500: '#5634c2',
    950: '#000000',
  },
}
SCSS
$custom: #5634c2;
$custom-light: #916fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#5634c2",
  "rgb": {
    "r": 86,
    "g": 52,
    "b": 194
  },
  "hsl": {
    "h": 254.366,
    "s": 57.724,
    "l": 48.235
  },
  "oklch": {
    "l": 0.4591,
    "c": 0.20612,
    "h": 286
  },
  "luminance": 0.08329
}

Semantic roles & 50–950 ramp

primary
#5634C2
secondary
#BBCC86
accent
#E147BC
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5634C2

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

Preview Lab → · Contrast checker → · Palette generator →

#5634C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva