#5738BE#5738BE

#5738BE is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.2% C 0.197 H 286.5°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#5738BE
RGBrgb(87, 56, 190)
HSLhsl(254, 54%, 48%)
HSVhsv(254, 71%, 75%)
CMYKcmyk(54.2%, 70.5%, 0%, 25.5%)
CIE-LABlab(35.15, 47.54, -65.69)
CIE-LCHlch(35.15, 81.09, 305.89°)
OKLaboklab(46.17% 0.0559 -0.1889)
OKLCHoklch(46.17% 0.197 286.5)
XYZxyz(14.6361, 8.5715, 49.5885)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5738BE #9FBE38
analogous
#385CBE #5738BE #9A38BE
triadic
#5738BE #BE5738 #38BE57
tetradic
#5738BE #BE385C #9FBE38 #38BE9A
square
#5738BE #BE385C #9FBE38 #38BE9A
split-complementary
#5738BE #BE9A38 #5CBE38
monochromatic
#2C1C5F #412A8F #5738BE #7C62D1 #A392DF

Accessibility & contrast

On white

7.74
#5738BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5738BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5738BE
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5738BE#FFFFFF#000000##FFFFFF
##5738BE1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C2
Deuteranopia (green-blind)
#004FBB
Tritanopia (blue-blind)
#2B5B77
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5738be;
/* rgb */ color: rgb(87, 56, 190);
/* oklch */ color: oklch(46.2% 0.197 286.5);
Tailwind
colors: {
  custom: {
    50: '#9171d3',
    500: '#5738be',
    950: '#000000',
  },
}
SCSS
$custom: #5738be;
$custom-light: #9171d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5738be",
  "rgb": {
    "r": 87,
    "g": 56,
    "b": 190
  },
  "hsl": {
    "h": 253.881,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.4617,
    "c": 0.19697,
    "h": 286.5
  },
  "luminance": 0.08572
}

Semantic roles & 50–950 ramp

primary
#5738BE
secondary
#BBCA88
accent
#DE4ABC
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5738BE

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

Preview Lab → · Contrast checker → · Palette generator →

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