#5738AE#5738AE

#5738AE is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.8% C 0.178 H 289.3°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#5738AE
RGBrgb(87, 56, 174)
HSLhsl(256, 51%, 45%)
HSVhsv(256, 68%, 68%)
CMYKcmyk(50%, 67.8%, 0%, 31.8%)
CIE-LABlab(33.79, 42.87, -58.43)
CIE-LCHlch(33.79, 72.47, 306.27°)
OKLaboklab(44.79% 0.0586 -0.1676)
OKLCHoklch(44.79% 0.178 289.3)
XYZxyz(12.9824, 7.9100, 40.8789)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5738AE #8FAE38
analogous
#3854AE #5738AE #9238AE
triadic
#5738AE #AE5738 #38AE57
tetradic
#5738AE #AE3854 #8FAE38 #38AE92
square
#5738AE #AE3854 #8FAE38 #38AE92
split-complementary
#5738AE #AE9238 #54AE38
monochromatic
#291A51 #402980 #5738AE #7759CA #9D88D9

Accessibility & contrast

On white

8.13
#5738AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5738AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5738AE
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5738AE#FFFFFF#000000##FFFFFF
##5738AE1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#004DAC
Tritanopia (blue-blind)
#39556E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5738ae;
/* rgb */ color: rgb(87, 56, 174);
/* oklch */ color: oklch(44.8% 0.178 289.3);
Tailwind
colors: {
  custom: {
    50: '#8e71c7',
    500: '#5738ae',
    950: '#000000',
  },
}
SCSS
$custom: #5738ae;
$custom-light: #8e71c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5738ae",
  "rgb": {
    "r": 87,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 255.763,
    "s": 51.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44786,
    "c": 0.17751,
    "h": 289.3
  },
  "luminance": 0.07911
}

Semantic roles & 50–950 ramp

primary
#5738AE
secondary
#B1C37F
accent
#DB4DB6
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5738AE

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

Preview Lab → · Contrast checker → · Palette generator →

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