#5838CA#5838CA

#5838CA is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.3% C 0.211 H 285.1°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#5838CA
RGBrgb(88, 56, 202)
HSLhsl(253, 58%, 51%)
HSVhsv(253, 72%, 79%)
CMYKcmyk(56.4%, 72.3%, 0%, 20.8%)
CIE-LABlab(36.30, 51.19, -70.81)
CIE-LCHlch(36.30, 87.37, 305.86°)
OKLaboklab(47.34% 0.0548 -0.2038)
OKLCHoklch(47.34% 0.211 285.1)
XYZxyz(16.0961, 9.1664, 56.7868)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5838CA #AACA38
analogous
#3861CA #5838CA #A138CA
triadic
#5838CA #CA5838 #38CA58
tetradic
#5838CA #CA3861 #AACA38 #38CAA1
square
#5838CA #CA3861 #AACA38 #38CAA1
split-complementary
#5838CA #CAA138 #61CA38
monochromatic
#2E1D6B #42299B #5838CA #8168D7 #A999E4

Accessibility & contrast

On white

7.41
#5838CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5838CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5838CA
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5838CA#FFFFFF#000000##FFFFFF
##5838CA1.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CE
Deuteranopia (green-blind)
#0051C7
Tritanopia (blue-blind)
#1F607E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5838ca;
/* rgb */ color: rgb(88, 56, 202);
/* oklch */ color: oklch(47.3% 0.211 285.1);
Tailwind
colors: {
  custom: {
    50: '#9372db',
    500: '#5838ca',
    950: '#000000',
  },
}
SCSS
$custom: #5838ca;
$custom-light: #9372db;
$custom-dark: #000000;
JSON
{
  "hex": "#5838ca",
  "rgb": {
    "r": 88,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 253.151,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.4734,
    "c": 0.21109,
    "h": 285.1
  },
  "luminance": 0.09167
}

Semantic roles & 50–950 ramp

primary
#5838CA
secondary
#C1CF8E
accent
#E147BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5838CA

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

Preview Lab → · Contrast checker → · Palette generator →

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