#5738D5#5738D5

#5738D5 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.3% C 0.224 H 283.1°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#5738D5
RGBrgb(87, 56, 213)
HSLhsl(252, 65%, 53%)
HSVhsv(252, 74%, 84%)
CMYKcmyk(59.2%, 73.7%, 0%, 16.5%)
CIE-LABlab(37.22, 54.24, -75.68)
CIE-LCHlch(37.22, 93.11, 305.63°)
OKLaboklab(48.27% 0.051 -0.2181)
OKLCHoklch(48.27% 0.224 283.1)
XYZxyz(17.3512, 9.6575, 63.8877)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5738D5 #B6D538
analogous
#3868D5 #5738D5 #A538D5
triadic
#5738D5 #D55738 #38D557
tetradic
#5738D5 #D53868 #B6D538 #38D5A5
square
#5738D5 #D53868 #B6D538 #38D5A5
split-complementary
#5738D5 #D5A538 #68D538
monochromatic
#2C1A79 #3F24AC #5738D5 #826BE0 #AC9DEA

Accessibility & contrast

On white

7.16
#5738D5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5738D5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5738D5
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5738D5#FFFFFF#000000##FFFFFF
##5738D51.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CDA
Deuteranopia (green-blind)
#0052D2
Tritanopia (blue-blind)
#006484
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5738d5;
/* rgb */ color: rgb(87, 56, 213);
/* oklch */ color: oklch(48.3% 0.224 283.1);
Tailwind
colors: {
  custom: {
    50: '#9472e3',
    500: '#5738d5',
    950: '#000000',
  },
}
SCSS
$custom: #5738d5;
$custom-light: #9472e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5738d5",
  "rgb": {
    "r": 87,
    "g": 56,
    "b": 213
  },
  "hsl": {
    "h": 251.847,
    "s": 65.145,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48273,
    "c": 0.22398,
    "h": 283.1
  },
  "luminance": 0.09659
}

Semantic roles & 50–950 ramp

primary
#5738D5
secondary
#C9D692
accent
#E840C7
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0816
muted
#7E7B84

Preview Lab

Preview with #5738D5

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

Preview Lab → · Contrast checker → · Palette generator →

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