#5738CB#5738CB

#5738CB is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.3% C 0.212 H 284.5°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#5738CB
RGBrgb(87, 56, 203)
HSLhsl(253, 59%, 51%)
HSVhsv(253, 72%, 80%)
CMYKcmyk(57.1%, 72.4%, 0%, 20.4%)
CIE-LABlab(36.30, 51.34, -71.40)
CIE-LCHlch(36.30, 87.94, 305.72°)
OKLaboklab(47.34% 0.0532 -0.2056)
OKLCHoklch(47.34% 0.212 284.5)
XYZxyz(16.1209, 9.1654, 57.4080)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5738CB #ACCB38
analogous
#3862CB #5738CB #A038CB
triadic
#5738CB #CB5738 #38CB57
tetradic
#5738CB #CB3862 #ACCB38 #38CBA0
square
#5738CB #CB3862 #ACCB38 #38CBA0
split-complementary
#5738CB #CBA038 #62CB38
monochromatic
#2D1C6C #41299D #5738CB #8069D8 #A999E4

Accessibility & contrast

On white

7.41
#5738CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5738CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5738CB
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5738CB#FFFFFF#000000##FFFFFF
##5738CB1.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACF
Deuteranopia (green-blind)
#0051C8
Tritanopia (blue-blind)
#19607E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5738cb;
/* rgb */ color: rgb(87, 56, 203);
/* oklch */ color: oklch(47.3% 0.212 284.5);
Tailwind
colors: {
  custom: {
    50: '#9372dc',
    500: '#5738cb',
    950: '#000000',
  },
}
SCSS
$custom: #5738cb;
$custom-light: #9372dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5738cb",
  "rgb": {
    "r": 87,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 252.653,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47344,
    "c": 0.21237,
    "h": 284.5
  },
  "luminance": 0.09166
}

Semantic roles & 50–950 ramp

primary
#5738CB
secondary
#C2D08F
accent
#E246C1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5738CB

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

Preview Lab → · Contrast checker → · Palette generator →

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