#5738CA#5738CA

#5738CA is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.3% C 0.211 H 284.7°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#5738CA
RGBrgb(87, 56, 202)
HSLhsl(253, 58%, 51%)
HSVhsv(253, 72%, 79%)
CMYKcmyk(56.9%, 72.3%, 0%, 20.8%)
CIE-LABlab(36.21, 51.04, -70.97)
CIE-LCHlch(36.21, 87.42, 305.73°)
OKLaboklab(47.25% 0.0534 -0.2043)
OKLCHoklch(47.25% 0.211 284.7)
XYZxyz(16.0021, 9.1179, 56.7824)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5738CA #ABCA38
analogous
#3862CA #5738CA #A038CA
triadic
#5738CA #CA5738 #38CA57
tetradic
#5738CA #CA3862 #ABCA38 #38CAA0
square
#5738CA #CA3862 #ABCA38 #38CAA0
split-complementary
#5738CA #CAA038 #62CA38
monochromatic
#2D1D6B #42299B #5738CA #8068D7 #A999E4

Accessibility & contrast

On white

7.44
#5738CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5738CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5738CA
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5738CA#FFFFFF#000000##FFFFFF
##5738CA1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CE
Deuteranopia (green-blind)
#0051C7
Tritanopia (blue-blind)
#1B607E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5738ca;
/* rgb */ color: rgb(87, 56, 202);
/* oklch */ color: oklch(47.3% 0.211 284.7);
Tailwind
colors: {
  custom: {
    50: '#9272db',
    500: '#5738ca',
    950: '#000000',
  },
}
SCSS
$custom: #5738ca;
$custom-light: #9272db;
$custom-dark: #000000;
JSON
{
  "hex": "#5738ca",
  "rgb": {
    "r": 87,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 252.74,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47252,
    "c": 0.2112,
    "h": 284.7
  },
  "luminance": 0.09119
}

Semantic roles & 50–950 ramp

primary
#5738CA
secondary
#C2CF8E
accent
#E147C0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5738CA

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

Preview Lab → · Contrast checker → · Palette generator →

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