#5838C0#5838C0

#5838C0 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.4% C 0.199 H 286.6°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#5838C0
RGBrgb(88, 56, 192)
HSLhsl(254, 55%, 49%)
HSVhsv(254, 71%, 75%)
CMYKcmyk(54.2%, 70.8%, 0%, 24.7%)
CIE-LABlab(35.42, 48.28, -66.42)
CIE-LCHlch(35.42, 82.12, 306.01°)
OKLaboklab(46.44% 0.0569 -0.191)
OKLCHoklch(46.44% 0.199 286.6)
XYZxyz(14.9503, 8.7080, 50.7520)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5838C0 #A0C038
analogous
#385CC0 #5838C0 #9C38C0
triadic
#5838C0 #C05838 #38C058
tetradic
#5838C0 #C0385C #A0C038 #38C09C
square
#5838C0 #C0385C #A0C038 #38C09C
split-complementary
#5838C0 #C09C38 #5CC038
monochromatic
#2D1C61 #422A91 #5838C0 #7D64D2 #A593DF

Accessibility & contrast

On white

7.66
#5838C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5838C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5838C0
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5838C0#FFFFFF#000000##FFFFFF
##5838C01.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C4
Deuteranopia (green-blind)
#004FBD
Tritanopia (blue-blind)
#2C5C78
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5838c0;
/* rgb */ color: rgb(88, 56, 192);
/* oklch */ color: oklch(46.4% 0.199 286.6);
Tailwind
colors: {
  custom: {
    50: '#9171d4',
    500: '#5838c0',
    950: '#000000',
  },
}
SCSS
$custom: #5838c0;
$custom-light: #9171d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5838c0",
  "rgb": {
    "r": 88,
    "g": 56,
    "b": 192
  },
  "hsl": {
    "h": 254.118,
    "s": 54.839,
    "l": 48.627
  },
  "oklch": {
    "l": 0.46439,
    "c": 0.19929,
    "h": 286.6
  },
  "luminance": 0.08709
}

Semantic roles & 50–950 ramp

primary
#5838C0
secondary
#BBCB89
accent
#DE4ABB
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5838C0

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

Preview Lab → · Contrast checker → · Palette generator →

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