#5838BF#5838BF

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

Color values

HEX#5838BF
RGBrgb(88, 56, 191)
HSLhsl(254, 55%, 48%)
HSVhsv(254, 71%, 75%)
CMYKcmyk(53.9%, 70.7%, 0%, 25.1%)
CIE-LABlab(35.33, 47.99, -65.98)
CIE-LCHlch(35.33, 81.58, 306.03°)
OKLaboklab(46.35% 0.0571 -0.1897)
OKLCHoklch(46.35% 0.198 286.8)
XYZxyz(14.8398, 8.6639, 50.1705)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5838BF #9FBF38
analogous
#385BBF #5838BF #9B38BF
triadic
#5838BF #BF5838 #38BF58
tetradic
#5838BF #BF385B #9FBF38 #38BF9B
square
#5838BF #BF385B #9FBF38 #38BF9B
split-complementary
#5838BF #BF9B38 #5BBF38
monochromatic
#2C1C60 #422A90 #5838BF #7D63D1 #A492DF

Accessibility & contrast

On white

7.68
#5838BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5838BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5838BF
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5838BF#FFFFFF#000000##FFFFFF
##5838BF1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C3
Deuteranopia (green-blind)
#004FBC
Tritanopia (blue-blind)
#2D5C77
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5838bf;
/* rgb */ color: rgb(88, 56, 191);
/* oklch */ color: oklch(46.4% 0.198 286.8);
Tailwind
colors: {
  custom: {
    50: '#9171d3',
    500: '#5838bf',
    950: '#000000',
  },
}
SCSS
$custom: #5838bf;
$custom-light: #9171d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5838bf",
  "rgb": {
    "r": 88,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 254.222,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46351,
    "c": 0.19809,
    "h": 286.8
  },
  "luminance": 0.08665
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5838BF

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

Preview Lab → · Contrast checker → · Palette generator →

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