#5738D4#5738D4

#5738D4 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.2% C 0.223 H 283.3°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#5738D4
RGBrgb(87, 56, 212)
HSLhsl(252, 64%, 53%)
HSVhsv(252, 74%, 83%)
CMYKcmyk(59%, 73.6%, 0%, 16.9%)
CIE-LABlab(37.13, 53.95, -75.25)
CIE-LCHlch(37.13, 92.59, 305.64°)
OKLaboklab(48.18% 0.0512 -0.2169)
OKLCHoklch(48.18% 0.223 283.3)
XYZxyz(17.2246, 9.6069, 63.2213)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5738D4 #B5D438
analogous
#3867D4 #5738D4 #A538D4
triadic
#5738D4 #D45738 #38D457
tetradic
#5738D4 #D43867 #B5D438 #38D4A5
square
#5738D4 #D43867 #B5D438 #38D4A5
split-complementary
#5738D4 #D4A538 #67D438
monochromatic
#2D1A78 #3F25AA #5738D4 #816ADF #AC9DEA

Accessibility & contrast

On white

7.19
#5738D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5738D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5738D4
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5738D4#FFFFFF#000000##FFFFFF
##5738D41.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD9
Deuteranopia (green-blind)
#0052D1
Tritanopia (blue-blind)
#006483
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5738d4;
/* rgb */ color: rgb(87, 56, 212);
/* oklch */ color: oklch(48.2% 0.223 283.3);
Tailwind
colors: {
  custom: {
    50: '#9472e2',
    500: '#5738d4',
    950: '#000000',
  },
}
SCSS
$custom: #5738d4;
$custom-light: #9472e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5738d4",
  "rgb": {
    "r": 87,
    "g": 56,
    "b": 212
  },
  "hsl": {
    "h": 251.923,
    "s": 64.463,
    "l": 52.549
  },
  "oklch": {
    "l": 0.4818,
    "c": 0.22283,
    "h": 283.3
  },
  "luminance": 0.09608
}

Semantic roles & 50–950 ramp

primary
#5738D4
secondary
#C8D692
accent
#E740C6
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0816
muted
#7E7B84

Preview Lab

Preview with #5738D4

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

Preview Lab → · Contrast checker → · Palette generator →

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