#5837C8#5837C8

#5837C8 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.0% C 0.210 H 285.5°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#5837C8
RGBrgb(88, 55, 200)
HSLhsl(254, 57%, 50%)
HSVhsv(254, 73%, 78%)
CMYKcmyk(56%, 72.5%, 0%, 21.6%)
CIE-LABlab(35.94, 51.12, -70.24)
CIE-LCHlch(35.94, 86.88, 306.05°)
OKLaboklab(47.03% 0.056 -0.2022)
OKLCHoklch(47.03% 0.21 285.5)
XYZxyz(15.8129, 8.9763, 55.5317)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5837C8 #A7C837
analogous
#375FC8 #5837C8 #A037C8
triadic
#5837C8 #C85837 #37C858
tetradic
#5837C8 #C8375F #A7C837 #37C8A0
square
#5837C8 #C8375F #A7C837 #37C8A0
split-complementary
#5837C8 #C8A037 #5FC837
monochromatic
#2E1D68 #432A98 #5837C8 #8067D5 #A897E2

Accessibility & contrast

On white

7.51
#5837C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5837C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5837C8
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5837C8#FFFFFF#000000##FFFFFF
##5837C81.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CC
Deuteranopia (green-blind)
#0050C5
Tritanopia (blue-blind)
#225E7C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5837c8;
/* rgb */ color: rgb(88, 55, 200);
/* oklch */ color: oklch(47.0% 0.210 285.5);
Tailwind
colors: {
  custom: {
    50: '#9371da',
    500: '#5837c8',
    950: '#000000',
  },
}
SCSS
$custom: #5837c8;
$custom-light: #9371da;
$custom-dark: #000000;
JSON
{
  "hex": "#5837c8",
  "rgb": {
    "r": 88,
    "g": 55,
    "b": 200
  },
  "hsl": {
    "h": 253.655,
    "s": 56.863,
    "l": 50
  },
  "oklch": {
    "l": 0.47028,
    "c": 0.2098,
    "h": 285.5
  },
  "luminance": 0.08977
}

Semantic roles & 50–950 ramp

primary
#5837C8
secondary
#BFCE8D
accent
#E048BD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5837C8

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

Preview Lab → · Contrast checker → · Palette generator →

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