#5839CC#5839CC

#5839CC is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.7% C 0.212 H 284.6°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#5839CC
RGBrgb(88, 57, 204)
HSLhsl(253, 59%, 51%)
HSVhsv(253, 72%, 80%)
CMYKcmyk(56.9%, 72.1%, 0%, 20%)
CIE-LABlab(36.67, 51.25, -71.37)
CIE-LCHlch(36.67, 87.87, 305.68°)
OKLaboklab(47.65% 0.0536 -0.2055)
OKLCHoklch(47.65% 0.212 284.6)
XYZxyz(16.3834, 9.3596, 58.0583)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5839CC #ADCC39
analogous
#3963CC #5839CC #A139CC
triadic
#5839CC #CC5839 #39CC58
tetradic
#5839CC #CC3963 #ADCC39 #39CCA1
square
#5839CC #CC3963 #ADCC39 #39CCA1
split-complementary
#5839CC #CCA139 #63CC39
monochromatic
#2E1C6E #42299F #5839CC #816AD9 #AA9AE5

Accessibility & contrast

On white

7.31
#5839CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5839CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5839CC
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5839CC#FFFFFF#000000##FFFFFF
##5839CC1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD0
Deuteranopia (green-blind)
#0052C9
Tritanopia (blue-blind)
#1C617F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5839cc;
/* rgb */ color: rgb(88, 57, 204);
/* oklch */ color: oklch(47.7% 0.212 284.6);
Tailwind
colors: {
  custom: {
    50: '#9373dd',
    500: '#5839cc',
    950: '#000000',
  },
}
SCSS
$custom: #5839cc;
$custom-light: #9373dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5839cc",
  "rgb": {
    "r": 88,
    "g": 57,
    "b": 204
  },
  "hsl": {
    "h": 252.653,
    "s": 59.036,
    "l": 51.176
  },
  "oklch": {
    "l": 0.47654,
    "c": 0.21238,
    "h": 284.6
  },
  "luminance": 0.09361
}

Semantic roles & 50–950 ramp

primary
#5839CC
secondary
#C3D190
accent
#E246C1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5839CC

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

Preview Lab → · Contrast checker → · Palette generator →

#5839CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva