#5738BD#5738BD

#5738BD is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.1% C 0.196 H 286.6°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#5738BD
RGBrgb(87, 56, 189)
HSLhsl(254, 54%, 48%)
HSVhsv(254, 70%, 74%)
CMYKcmyk(54%, 70.4%, 0%, 25.9%)
CIE-LABlab(35.06, 47.25, -65.25)
CIE-LCHlch(35.06, 80.56, 305.91°)
OKLaboklab(46.08% 0.0561 -0.1876)
OKLCHoklch(46.08% 0.196 286.6)
XYZxyz(14.5272, 8.5279, 49.0148)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5738BD #9EBD38
analogous
#385BBD #5738BD #9938BD
triadic
#5738BD #BD5738 #38BD57
tetradic
#5738BD #BD385B #9EBD38 #38BD99
square
#5738BD #BD385B #9EBD38 #38BD99
split-complementary
#5738BD #BD9938 #5BBD38
monochromatic
#2C1C5F #412A8E #5738BD #7C62D0 #A391DE

Accessibility & contrast

On white

7.76
#5738BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5738BD
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5738BD#FFFFFF#000000##FFFFFF
##5738BD1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C1
Deuteranopia (green-blind)
#004FBA
Tritanopia (blue-blind)
#2C5B76
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5738bd;
/* rgb */ color: rgb(87, 56, 189);
/* oklch */ color: oklch(46.1% 0.196 286.6);
Tailwind
colors: {
  custom: {
    50: '#9071d2',
    500: '#5738bd',
    950: '#000000',
  },
}
SCSS
$custom: #5738bd;
$custom-light: #9071d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5738bd",
  "rgb": {
    "r": 87,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 253.985,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46082,
    "c": 0.19577,
    "h": 286.6
  },
  "luminance": 0.08529
}

Semantic roles & 50–950 ramp

primary
#5738BD
secondary
#BAC987
accent
#DE4ABB
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5738BD

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

Preview Lab → · Contrast checker → · Palette generator →

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