#5738DB#5738DB

#5738DB is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.8% C 0.231 H 282.4°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#5738DB
RGBrgb(87, 56, 219)
HSLhsl(251, 69%, 54%)
HSVhsv(251, 74%, 86%)
CMYKcmyk(60.3%, 74.4%, 0%, 14.1%)
CIE-LABlab(37.78, 55.98, -78.20)
CIE-LCHlch(37.78, 96.17, 305.60°)
OKLaboklab(48.84% 0.0495 -0.2255)
OKLCHoklch(48.84% 0.231 282.4)
XYZxyz(18.1269, 9.9678, 67.9729)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5738DB #BCDB38
analogous
#386BDB #5738DB #A938DB
triadic
#5738DB #DB5738 #38DB57
tetradic
#5738DB #DB386B #BCDB38 #38DBA9
square
#5738DB #DB386B #BCDB38 #38DBA9
split-complementary
#5738DB #DBA938 #6BDB38
monochromatic
#2C1781 #3D21B5 #5738DB #836CE4 #AFA0EE

Accessibility & contrast

On white

7.01
#5738DB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5738DB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5738DB
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5738DB#FFFFFF#000000##FFFFFF
##5738DB1.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EE0
Deuteranopia (green-blind)
#0053D8
Tritanopia (blue-blind)
#006687
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5738db;
/* rgb */ color: rgb(87, 56, 219);
/* oklch */ color: oklch(48.8% 0.231 282.4);
Tailwind
colors: {
  custom: {
    50: '#9573e7',
    500: '#5738db',
    950: '#000000',
  },
}
SCSS
$custom: #5738db;
$custom-light: #9573e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5738db",
  "rgb": {
    "r": 87,
    "g": 56,
    "b": 219
  },
  "hsl": {
    "h": 251.411,
    "s": 69.362,
    "l": 53.922
  },
  "oklch": {
    "l": 0.48841,
    "c": 0.23086,
    "h": 282.4
  },
  "luminance": 0.09969
}

Semantic roles & 50–950 ramp

primary
#5738DB
secondary
#CDDA95
accent
#EC3CCB
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5738DB

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

Preview Lab → · Contrast checker → · Palette generator →

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