#5738DC#5738DC

#5738DC is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.9% C 0.232 H 282.3°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#5738DC
RGBrgb(87, 56, 220)
HSLhsl(251, 70%, 54%)
HSVhsv(251, 75%, 86%)
CMYKcmyk(60.5%, 74.5%, 0%, 13.7%)
CIE-LABlab(37.88, 56.26, -78.62)
CIE-LCHlch(37.88, 96.68, 305.59°)
OKLaboklab(48.94% 0.0493 -0.2267)
OKLCHoklch(48.94% 0.232 282.3)
XYZxyz(18.2589, 10.0206, 68.6683)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5738DC #BDDC38
analogous
#386BDC #5738DC #A938DC
triadic
#5738DC #DC5738 #38DC57
tetradic
#5738DC #DC386B #BDDC38 #38DCA9
square
#5738DC #DC386B #BDDC38 #38DCA9
split-complementary
#5738DC #DCA938 #6BDC38
monochromatic
#2B1783 #3D20B7 #5738DC #836CE5 #AFA0EE

Accessibility & contrast

On white

6.99
#5738DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#5738DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5738DC
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5738DC#FFFFFF#000000##FFFFFF
##5738DC1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EE1
Deuteranopia (green-blind)
#0053D9
Tritanopia (blue-blind)
#006788
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5738dc;
/* rgb */ color: rgb(87, 56, 220);
/* oklch */ color: oklch(48.9% 0.232 282.3);
Tailwind
colors: {
  custom: {
    50: '#9573e8',
    500: '#5738dc',
    950: '#000000',
  },
}
SCSS
$custom: #5738dc;
$custom-light: #9573e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5738dc",
  "rgb": {
    "r": 87,
    "g": 56,
    "b": 220
  },
  "hsl": {
    "h": 251.341,
    "s": 70.085,
    "l": 54.118
  },
  "oklch": {
    "l": 0.48936,
    "c": 0.23199,
    "h": 282.3
  },
  "luminance": 0.10022
}

Semantic roles & 50–950 ramp

primary
#5738DC
secondary
#CEDB95
accent
#ED3BCB
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5738DC

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

Preview Lab → · Contrast checker → · Palette generator →

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