#5837DB#5837DB

#5837DB is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.8% C 0.232 H 282.9°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#5837DB
RGBrgb(88, 55, 219)
HSLhsl(252, 69%, 54%)
HSVhsv(252, 75%, 86%)
CMYKcmyk(59.8%, 74.9%, 0%, 14.1%)
CIE-LABlab(37.70, 56.59, -78.34)
CIE-LCHlch(37.70, 96.64, 305.84°)
OKLaboklab(48.8% 0.0516 -0.2258)
OKLCHoklch(48.8% 0.232 282.9)
XYZxyz(18.1729, 9.9203, 67.9613)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5837DB #BADB37
analogous
#3768DB #5837DB #AA37DB
triadic
#5837DB #DB5837 #37DB58
tetradic
#5837DB #DB3768 #BADB37 #37DBAA
square
#5837DB #DB3768 #BADB37 #37DBAA
split-complementary
#5837DB #DBAA37 #68DB37
monochromatic
#2C1780 #3E20B4 #5837DB #836BE4 #AF9FEE

Accessibility & contrast

On white

7.04
#5837DB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5837DB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5837DB
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5837DB#FFFFFF#000000##FFFFFF
##5837DB1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.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: #5837db;
/* rgb */ color: rgb(88, 55, 219);
/* oklch */ color: oklch(48.8% 0.232 282.9);
Tailwind
colors: {
  custom: {
    50: '#9672e8',
    500: '#5837db',
    950: '#000000',
  },
}
SCSS
$custom: #5837db;
$custom-light: #9672e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5837db",
  "rgb": {
    "r": 88,
    "g": 55,
    "b": 219
  },
  "hsl": {
    "h": 252.073,
    "s": 69.492,
    "l": 53.725
  },
  "oklch": {
    "l": 0.48802,
    "c": 0.23167,
    "h": 282.9
  },
  "luminance": 0.09922
}

Semantic roles & 50–950 ramp

primary
#5837DB
secondary
#CCDA94
accent
#EC3BC9
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5837DB

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

Preview Lab → · Contrast checker → · Palette generator →

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