#5738CF#5738CF

#5738CF is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.7% C 0.217 H 283.9°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#5738CF
RGBrgb(87, 56, 207)
HSLhsl(252, 61%, 52%)
HSVhsv(252, 73%, 81%)
CMYKcmyk(58%, 72.9%, 0%, 18.8%)
CIE-LABlab(36.67, 52.50, -73.12)
CIE-LCHlch(36.67, 90.02, 305.68°)
OKLaboklab(47.71% 0.0523 -0.2106)
OKLCHoklch(47.71% 0.217 283.9)
XYZxyz(16.6037, 9.3585, 59.9508)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5738CF #B0CF38
analogous
#3865CF #5738CF #A338CF
triadic
#5738CF #CF5738 #38CF57
tetradic
#5738CF #CF3865 #B0CF38 #38CFA3
square
#5738CF #CF3865 #B0CF38 #38CFA3
split-complementary
#5738CF #CFA338 #65CF38
monochromatic
#2D1B71 #4127A3 #5738CF #8169DB #AA9BE7

Accessibility & contrast

On white

7.31
#5738CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5738CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5738CF
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5738CF#FFFFFF#000000##FFFFFF
##5738CF1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD3
Deuteranopia (green-blind)
#0051CC
Tritanopia (blue-blind)
#106280
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5738cf;
/* rgb */ color: rgb(87, 56, 207);
/* oklch */ color: oklch(47.7% 0.217 283.9);
Tailwind
colors: {
  custom: {
    50: '#9372df',
    500: '#5738cf',
    950: '#000000',
  },
}
SCSS
$custom: #5738cf;
$custom-light: #9372df;
$custom-dark: #000000;
JSON
{
  "hex": "#5738cf",
  "rgb": {
    "r": 87,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 252.318,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.47713,
    "c": 0.21704,
    "h": 283.9
  },
  "luminance": 0.0936
}

Semantic roles & 50–950 ramp

primary
#5738CF
secondary
#C5D390
accent
#E444C3
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5738CF

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

Preview Lab → · Contrast checker → · Palette generator →

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