#5838C3#5838C3

#5838C3 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.7% C 0.203 H 286.1°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5838C3
RGBrgb(88, 56, 195)
HSLhsl(254, 55%, 49%)
HSVhsv(254, 71%, 76%)
CMYKcmyk(54.9%, 71.3%, 0%, 23.5%)
CIE-LABlab(35.68, 49.15, -67.75)
CIE-LCHlch(35.68, 83.70, 305.96°)
OKLaboklab(46.71% 0.0563 -0.1949)
OKLCHoklch(46.71% 0.203 286.1)
XYZxyz(15.2860, 8.8423, 52.5205)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5838C3 #A3C338
analogous
#385EC3 #5838C3 #9E38C3
triadic
#5838C3 #C35838 #38C358
tetradic
#5838C3 #C3385E #A3C338 #38C39E
square
#5838C3 #C3385E #A3C338 #38C39E
split-complementary
#5838C3 #C39E38 #5EC338
monochromatic
#2D1D64 #432A93 #5838C3 #7F65D3 #A695E1

Accessibility & contrast

On white

7.59
#5838C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5838C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5838C3
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5838C3#FFFFFF#000000##FFFFFF
##5838C31.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C7
Deuteranopia (green-blind)
#0050C0
Tritanopia (blue-blind)
#295D7A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5838c3;
/* rgb */ color: rgb(88, 56, 195);
/* oklch */ color: oklch(46.7% 0.203 286.1);
Tailwind
colors: {
  custom: {
    50: '#9272d6',
    500: '#5838c3',
    950: '#000000',
  },
}
SCSS
$custom: #5838c3;
$custom-light: #9272d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5838c3",
  "rgb": {
    "r": 88,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 253.813,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46707,
    "c": 0.20285,
    "h": 286.1
  },
  "luminance": 0.08843
}

Semantic roles & 50–950 ramp

primary
#5838C3
secondary
#BDCC8B
accent
#DF49BC
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5838C3

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

Preview Lab → · Contrast checker → · Palette generator →

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