#5738AF#5738AF

#5738AF is a dark, vivid violet. Relative luminance 0.080; OKLCH L 44.9% C 0.179 H 289.1°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#5738AF
RGBrgb(87, 56, 175)
HSLhsl(256, 52%, 45%)
HSVhsv(256, 68%, 69%)
CMYKcmyk(50.3%, 68%, 0%, 31.4%)
CIE-LABlab(33.88, 43.16, -58.89)
CIE-LCHlch(33.88, 73.01, 306.24°)
OKLaboklab(44.87% 0.0585 -0.1689)
OKLCHoklch(44.87% 0.179 289.1)
XYZxyz(13.0803, 7.9492, 41.3943)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5738AF #90AF38
analogous
#3855AF #5738AF #9238AF
triadic
#5738AF #AF5738 #38AF57
tetradic
#5738AF #AF3855 #90AF38 #38AF92
square
#5738AF #AF3855 #90AF38 #38AF92
split-complementary
#5738AF #AF9238 #55AF38
monochromatic
#291A52 #402981 #5738AF #775ACA #9D88D9

Accessibility & contrast

On white

8.11
#5738AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5738AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5738AF
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5738AF#FFFFFF#000000##FFFFFF
##5738AF1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#38566F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5738af;
/* rgb */ color: rgb(87, 56, 175);
/* oklch */ color: oklch(44.9% 0.179 289.1);
Tailwind
colors: {
  custom: {
    50: '#8e71c8',
    500: '#5738af',
    950: '#000000',
  },
}
SCSS
$custom: #5738af;
$custom-light: #8e71c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5738af",
  "rgb": {
    "r": 87,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 255.63,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4487,
    "c": 0.17875,
    "h": 289.1
  },
  "luminance": 0.0795
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5738AF

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

Preview Lab → · Contrast checker → · Palette generator →

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