#5838C1#5838C1

#5838C1 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.5% C 0.200 H 286.4°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#5838C1
RGBrgb(88, 56, 193)
HSLhsl(254, 55%, 49%)
HSVhsv(254, 71%, 76%)
CMYKcmyk(54.4%, 71%, 0%, 24.3%)
CIE-LABlab(35.50, 48.57, -66.87)
CIE-LCHlch(35.50, 82.65, 306.00°)
OKLaboklab(46.53% 0.0567 -0.1923)
OKLCHoklch(46.53% 0.2 286.4)
XYZxyz(15.0614, 8.7525, 51.3375)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5838C1 #A1C138
analogous
#385DC1 #5838C1 #9D38C1
triadic
#5838C1 #C15838 #38C158
tetradic
#5838C1 #C1385D #A1C138 #38C19D
square
#5838C1 #C1385D #A1C138 #38C19D
split-complementary
#5838C1 #C19D38 #5DC138
monochromatic
#2D1C62 #422A92 #5838C1 #7E64D2 #A594E0

Accessibility & contrast

On white

7.63
#5838C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5838C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5838C1
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5838C1#FFFFFF#000000##FFFFFF
##5838C11.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C5
Deuteranopia (green-blind)
#0050BE
Tritanopia (blue-blind)
#2B5C79
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5838c1;
/* rgb */ color: rgb(88, 56, 193);
/* oklch */ color: oklch(46.5% 0.200 286.4);
Tailwind
colors: {
  custom: {
    50: '#9271d5',
    500: '#5838c1',
    950: '#000000',
  },
}
SCSS
$custom: #5838c1;
$custom-light: #9271d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5838c1",
  "rgb": {
    "r": 88,
    "g": 56,
    "b": 193
  },
  "hsl": {
    "h": 254.015,
    "s": 55.02,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46528,
    "c": 0.20048,
    "h": 286.4
  },
  "luminance": 0.08753
}

Semantic roles & 50–950 ramp

primary
#5838C1
secondary
#BCCB8A
accent
#DE49BC
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5838C1

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

Preview Lab → · Contrast checker → · Palette generator →

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