#5738BB#5738BB

#5738BB is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.9% C 0.193 H 287.0°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#5738BB
RGBrgb(87, 56, 187)
HSLhsl(254, 54%, 48%)
HSVhsv(254, 70%, 73%)
CMYKcmyk(53.5%, 70.1%, 0%, 26.7%)
CIE-LABlab(34.89, 46.67, -64.35)
CIE-LCHlch(34.89, 79.49, 305.95°)
OKLaboklab(45.91% 0.0564 -0.1849)
OKLCHoklch(45.91% 0.193 287)
XYZxyz(14.3116, 8.4417, 47.8794)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5738BB #9CBB38
analogous
#385BBB #5738BB #9838BB
triadic
#5738BB #BB5738 #38BB57
tetradic
#5738BB #BB385B #9CBB38 #38BB98
square
#5738BB #BB385B #9CBB38 #38BB98
split-complementary
#5738BB #BB9838 #5BBB38
monochromatic
#2B1C5D #412A8C #5738BB #7B61D0 #A290DE

Accessibility & contrast

On white

7.81
#5738BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5738BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5738BB
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5738BB#FFFFFF#000000##FFFFFF
##5738BB1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BF
Deuteranopia (green-blind)
#004EB8
Tritanopia (blue-blind)
#2E5A75
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5738bb;
/* rgb */ color: rgb(87, 56, 187);
/* oklch */ color: oklch(45.9% 0.193 287.0);
Tailwind
colors: {
  custom: {
    50: '#9071d0',
    500: '#5738bb',
    950: '#000000',
  },
}
SCSS
$custom: #5738bb;
$custom-light: #9071d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5738bb",
  "rgb": {
    "r": 87,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 254.198,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45905,
    "c": 0.19337,
    "h": 287
  },
  "luminance": 0.08442
}

Semantic roles & 50–950 ramp

primary
#5738BB
secondary
#B9C886
accent
#DD4BBB
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5738BB

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

Preview Lab → · Contrast checker → · Palette generator →

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