#5838BB#5838BB

#5838BB is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.0% C 0.193 H 287.4°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#5838BB
RGBrgb(88, 56, 187)
HSLhsl(255, 54%, 48%)
HSVhsv(255, 70%, 73%)
CMYKcmyk(52.9%, 70.1%, 0%, 26.7%)
CIE-LABlab(34.98, 46.83, -64.19)
CIE-LCHlch(34.98, 79.45, 306.11°)
OKLaboklab(46% 0.0579 -0.1844)
OKLCHoklch(46% 0.193 287.4)
XYZxyz(14.4057, 8.4902, 47.8838)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5838BB #9BBB38
analogous
#385ABB #5838BB #9938BB
triadic
#5838BB #BB5838 #38BB58
tetradic
#5838BB #BB385A #9BBB38 #38BB99
square
#5838BB #BB385A #9BBB38 #38BB99
split-complementary
#5838BB #BB9938 #5ABB38
monochromatic
#2C1C5D #422A8C #5838BB #7C61D0 #A390DE

Accessibility & contrast

On white

7.78
#5838BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5838BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5838BB
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5838BB#FFFFFF#000000##FFFFFF
##5838BB1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BF
Deuteranopia (green-blind)
#004FB8
Tritanopia (blue-blind)
#315A75
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5838bb;
/* rgb */ color: rgb(88, 56, 187);
/* oklch */ color: oklch(46.0% 0.193 287.4);
Tailwind
colors: {
  custom: {
    50: '#9171d0',
    500: '#5838bb',
    950: '#000000',
  },
}
SCSS
$custom: #5838bb;
$custom-light: #9171d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5838bb",
  "rgb": {
    "r": 88,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 254.656,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45998,
    "c": 0.1933,
    "h": 287.4
  },
  "luminance": 0.08491
}

Semantic roles & 50–950 ramp

primary
#5838BB
secondary
#B8C886
accent
#DD4BB9
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5838BB

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

Preview Lab → · Contrast checker → · Palette generator →

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