#5838BE#5838BE

#5838BE is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.3% C 0.197 H 286.9°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#5838BE
RGBrgb(88, 56, 190)
HSLhsl(254, 54%, 48%)
HSVhsv(254, 71%, 75%)
CMYKcmyk(53.7%, 70.5%, 0%, 25.5%)
CIE-LABlab(35.24, 47.70, -65.53)
CIE-LCHlch(35.24, 81.05, 306.05°)
OKLaboklab(46.26% 0.0573 -0.1884)
OKLCHoklch(46.26% 0.197 286.9)
XYZxyz(14.7302, 8.6200, 49.5929)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5838BE #9EBE38
analogous
#385BBE #5838BE #9B38BE
triadic
#5838BE #BE5838 #38BE58
tetradic
#5838BE #BE385B #9EBE38 #38BE9B
square
#5838BE #BE385B #9EBE38 #38BE9B
split-complementary
#5838BE #BE9B38 #5BBE38
monochromatic
#2C1C5F #422A8F #5838BE #7D62D1 #A492DF

Accessibility & contrast

On white

7.71
#5838BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5838BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5838BE
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5838BE#FFFFFF#000000##FFFFFF
##5838BE1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C2
Deuteranopia (green-blind)
#004FBB
Tritanopia (blue-blind)
#2E5B77
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5838be;
/* rgb */ color: rgb(88, 56, 190);
/* oklch */ color: oklch(46.3% 0.197 286.9);
Tailwind
colors: {
  custom: {
    50: '#9171d3',
    500: '#5838be',
    950: '#000000',
  },
}
SCSS
$custom: #5838be;
$custom-light: #9171d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5838be",
  "rgb": {
    "r": 88,
    "g": 56,
    "b": 190
  },
  "hsl": {
    "h": 254.328,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46262,
    "c": 0.1969,
    "h": 286.9
  },
  "luminance": 0.08621
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5838BE

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

Preview Lab → · Contrast checker → · Palette generator →

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