#5738C6#5738C6

#5738C6 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 46.9% C 0.206 H 285.2°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#5738C6
RGBrgb(87, 56, 198)
HSLhsl(253, 56%, 50%)
HSVhsv(253, 72%, 78%)
CMYKcmyk(56.1%, 71.7%, 0%, 22.4%)
CIE-LABlab(35.85, 49.88, -69.22)
CIE-LCHlch(35.85, 85.32, 305.77°)
OKLaboklab(46.89% 0.0543 -0.1992)
OKLCHoklch(46.89% 0.206 285.2)
XYZxyz(15.5346, 8.9309, 54.3204)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5738C6 #A7C638
analogous
#3860C6 #5738C6 #9E38C6
triadic
#5738C6 #C65738 #38C657
tetradic
#5738C6 #C63860 #A7C638 #38C69E
square
#5738C6 #C63860 #A7C638 #38C69E
split-complementary
#5738C6 #C69E38 #60C638
monochromatic
#2D1D67 #422B96 #5738C6 #7F67D4 #A797E2

Accessibility & contrast

On white

7.54
#5738C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5738C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5738C6
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5738C6#FFFFFF#000000##FFFFFF
##5738C61.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CA
Deuteranopia (green-blind)
#0050C3
Tritanopia (blue-blind)
#225E7B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5738c6;
/* rgb */ color: rgb(87, 56, 198);
/* oklch */ color: oklch(46.9% 0.206 285.2);
Tailwind
colors: {
  custom: {
    50: '#9272d8',
    500: '#5738c6',
    950: '#000000',
  },
}
SCSS
$custom: #5738c6;
$custom-light: #9272d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5738c6",
  "rgb": {
    "r": 87,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 253.099,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.46888,
    "c": 0.20649,
    "h": 285.2
  },
  "luminance": 0.08932
}

Semantic roles & 50–950 ramp

primary
#5738C6
secondary
#BFCD8D
accent
#DF49BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5738C6

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

Preview Lab → · Contrast checker → · Palette generator →

#5738C6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva