#5838CF#5838CF

#5838CF is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.8% C 0.217 H 284.3°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#5838CF
RGBrgb(88, 56, 207)
HSLhsl(253, 61%, 52%)
HSVhsv(253, 73%, 81%)
CMYKcmyk(57.5%, 72.9%, 0%, 18.8%)
CIE-LABlab(36.76, 52.63, -72.97)
CIE-LCHlch(36.76, 89.97, 305.80°)
OKLaboklab(47.8% 0.0537 -0.2102)
OKLCHoklch(47.8% 0.217 284.3)
XYZxyz(16.6977, 9.4070, 59.9552)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5838CF #AFCF38
analogous
#3864CF #5838CF #A438CF
triadic
#5838CF #CF5838 #38CF58
tetradic
#5838CF #CF3864 #AFCF38 #38CFA4
square
#5838CF #CF3864 #AFCF38 #38CFA4
split-complementary
#5838CF #CFA438 #64CF38
monochromatic
#2E1B71 #4127A3 #5838CF #8169DB #AB9BE7

Accessibility & contrast

On white

7.29
#5838CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5838CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5838CF
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5838CF#FFFFFF#000000##FFFFFF
##5838CF1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD3
Deuteranopia (green-blind)
#0052CC
Tritanopia (blue-blind)
#166280
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5838cf;
/* rgb */ color: rgb(88, 56, 207);
/* oklch */ color: oklch(47.8% 0.217 284.3);
Tailwind
colors: {
  custom: {
    50: '#9472df',
    500: '#5838cf',
    950: '#000000',
  },
}
SCSS
$custom: #5838cf;
$custom-light: #9472df;
$custom-dark: #000000;
JSON
{
  "hex": "#5838cf",
  "rgb": {
    "r": 88,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 252.715,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.478,
    "c": 0.21692,
    "h": 284.3
  },
  "luminance": 0.09408
}

Semantic roles & 50–950 ramp

primary
#5838CF
secondary
#C5D390
accent
#E444C2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5838CF

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

Preview Lab → · Contrast checker → · Palette generator →

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