#5631C2#5631C2

#5631C2 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.5% C 0.209 H 286.4°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#5631C2
RGBrgb(86, 49, 194)
HSLhsl(255, 60%, 48%)
HSVhsv(255, 75%, 76%)
CMYKcmyk(55.7%, 74.7%, 0%, 23.9%)
CIE-LABlab(34.13, 52.15, -69.72)
CIE-LCHlch(34.13, 87.06, 306.79°)
OKLaboklab(45.54% 0.0591 -0.2007)
OKLCHoklch(45.54% 0.209 286.4)
XYZxyz(14.6707, 8.0693, 51.8130)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5631C2 #9DC231
analogous
#3155C2 #5631C2 #9E31C2
triadic
#5631C2 #C25631 #31C256
tetradic
#5631C2 #C23155 #9DC231 #31C29E
square
#5631C2 #C23155 #9DC231 #31C29E
split-complementary
#5631C2 #C29E31 #55C231
monochromatic
#2B1860 #402591 #5631C2 #7A5BD6 #A28CE2

Accessibility & contrast

On white

8.03
#5631C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5631C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5631C2
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5631C2#FFFFFF#000000##FFFFFF
##5631C21.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C6
Deuteranopia (green-blind)
#004CBF
Tritanopia (blue-blind)
#245977
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5631c2;
/* rgb */ color: rgb(86, 49, 194);
/* oklch */ color: oklch(45.5% 0.209 286.4);
Tailwind
colors: {
  custom: {
    50: '#916dd6',
    500: '#5631c2',
    950: '#000000',
  },
}
SCSS
$custom: #5631c2;
$custom-light: #916dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#5631c2",
  "rgb": {
    "r": 86,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 255.31,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45536,
    "c": 0.20919,
    "h": 286.4
  },
  "luminance": 0.0807
}

Semantic roles & 50–950 ramp

primary
#5631C2
secondary
#B9CC83
accent
#E345BB
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5631C2

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

Preview Lab → · Contrast checker → · Palette generator →

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