#5738BF#5738BF

#5738BF is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.3% C 0.198 H 286.3°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#5738BF
RGBrgb(87, 56, 191)
HSLhsl(254, 55%, 48%)
HSVhsv(254, 71%, 75%)
CMYKcmyk(54.5%, 70.7%, 0%, 25.1%)
CIE-LABlab(35.23, 47.83, -66.14)
CIE-LCHlch(35.23, 81.62, 305.88°)
OKLaboklab(46.26% 0.0557 -0.1902)
OKLCHoklch(46.26% 0.198 286.3)
XYZxyz(14.7458, 8.6154, 50.1660)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5738BF #A0BF38
analogous
#385CBF #5738BF #9A38BF
triadic
#5738BF #BF5738 #38BF57
tetradic
#5738BF #BF385C #A0BF38 #38BF9A
square
#5738BF #BF385C #A0BF38 #38BF9A
split-complementary
#5738BF #BF9A38 #5CBF38
monochromatic
#2C1C60 #412A90 #5738BF #7C63D1 #A492DF

Accessibility & contrast

On white

7.71
#5738BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5738BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5738BF
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5738BF#FFFFFF#000000##FFFFFF
##5738BF1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C3
Deuteranopia (green-blind)
#004FBC
Tritanopia (blue-blind)
#2A5C77
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5738bf;
/* rgb */ color: rgb(87, 56, 191);
/* oklch */ color: oklch(46.3% 0.198 286.3);
Tailwind
colors: {
  custom: {
    50: '#9171d3',
    500: '#5738bf',
    950: '#000000',
  },
}
SCSS
$custom: #5738bf;
$custom-light: #9171d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5738bf",
  "rgb": {
    "r": 87,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 253.778,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46259,
    "c": 0.19817,
    "h": 286.3
  },
  "luminance": 0.08616
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5738BF

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

Preview Lab → · Contrast checker → · Palette generator →

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