#5838BC#5838BC

#5838BC is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.1% C 0.195 H 287.2°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#5838BC
RGBrgb(88, 56, 188)
HSLhsl(255, 54%, 48%)
HSVhsv(255, 70%, 74%)
CMYKcmyk(53.2%, 70.2%, 0%, 26.3%)
CIE-LABlab(35.07, 47.12, -64.64)
CIE-LCHlch(35.07, 79.99, 306.09°)
OKLaboklab(46.09% 0.0577 -0.1857)
OKLCHoklch(46.09% 0.195 287.2)
XYZxyz(14.5131, 8.5332, 48.4495)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5838BC #9CBC38
analogous
#385ABC #5838BC #9A38BC
triadic
#5838BC #BC5838 #38BC58
tetradic
#5838BC #BC385A #9CBC38 #38BC9A
square
#5838BC #BC385A #9CBC38 #38BC9A
split-complementary
#5838BC #BC9A38 #5ABC38
monochromatic
#2C1C5E #422A8D #5838BC #7C61D0 #A390DE

Accessibility & contrast

On white

7.76
#5838BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5838BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5838BC
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5838BC#FFFFFF#000000##FFFFFF
##5838BC1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C0
Deuteranopia (green-blind)
#004FB9
Tritanopia (blue-blind)
#305A76
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5838bc;
/* rgb */ color: rgb(88, 56, 188);
/* oklch */ color: oklch(46.1% 0.195 287.2);
Tailwind
colors: {
  custom: {
    50: '#9171d1',
    500: '#5838bc',
    950: '#000000',
  },
}
SCSS
$custom: #5838bc;
$custom-light: #9171d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5838bc",
  "rgb": {
    "r": 88,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 254.545,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46086,
    "c": 0.1945,
    "h": 287.2
  },
  "luminance": 0.08534
}

Semantic roles & 50–950 ramp

primary
#5838BC
secondary
#B9C987
accent
#DD4ABA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5838BC

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

Preview Lab → · Contrast checker → · Palette generator →

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