#5838C8#5838C8

#5838C8 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.2% C 0.209 H 285.4°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#5838C8
RGBrgb(88, 56, 200)
HSLhsl(253, 57%, 50%)
HSVhsv(253, 72%, 78%)
CMYKcmyk(56%, 72%, 0%, 21.6%)
CIE-LABlab(36.12, 50.61, -69.94)
CIE-LCHlch(36.12, 86.33, 305.89°)
OKLaboklab(47.16% 0.0553 -0.2013)
OKLCHoklch(47.16% 0.209 285.4)
XYZxyz(15.8608, 9.0723, 55.5477)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5838C8 #A8C838
analogous
#3860C8 #5838C8 #A038C8
triadic
#5838C8 #C85838 #38C858
tetradic
#5838C8 #C83860 #A8C838 #38C8A0
square
#5838C8 #C83860 #A8C838 #38C8A0
split-complementary
#5838C8 #C8A038 #60C838
monochromatic
#2E1D69 #432A99 #5838C8 #8068D5 #A898E3

Accessibility & contrast

On white

7.46
#5838C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5838C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5838C8
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5838C8#FFFFFF#000000##FFFFFF
##5838C81.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CC
Deuteranopia (green-blind)
#0051C5
Tritanopia (blue-blind)
#225F7D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5838c8;
/* rgb */ color: rgb(88, 56, 200);
/* oklch */ color: oklch(47.2% 0.209 285.4);
Tailwind
colors: {
  custom: {
    50: '#9372da',
    500: '#5838c8',
    950: '#000000',
  },
}
SCSS
$custom: #5838c8;
$custom-light: #9372da;
$custom-dark: #000000;
JSON
{
  "hex": "#5838c8",
  "rgb": {
    "r": 88,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 253.333,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47158,
    "c": 0.20875,
    "h": 285.4
  },
  "luminance": 0.09073
}

Semantic roles & 50–950 ramp

primary
#5838C8
secondary
#C0CE8E
accent
#E048BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5838C8

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

Preview Lab → · Contrast checker → · Palette generator →

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