#5839CF#5839CF

#5839CF is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 47.9% C 0.216 H 284.2°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#5839CF
RGBrgb(88, 57, 207)
HSLhsl(252, 61%, 52%)
HSVhsv(252, 72%, 81%)
CMYKcmyk(57.5%, 72.5%, 0%, 18.8%)
CIE-LABlab(36.94, 52.12, -72.67)
CIE-LCHlch(36.94, 89.43, 305.65°)
OKLaboklab(47.93% 0.053 -0.2093)
OKLCHoklch(47.93% 0.216 284.2)
XYZxyz(16.7467, 9.5049, 59.9716)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5839CF #B0CF39
analogous
#3965CF #5839CF #A339CF
triadic
#5839CF #CF5839 #39CF58
tetradic
#5839CF #CF3965 #B0CF39 #39CFA3
square
#5839CF #CF3965 #B0CF39 #39CFA3
split-complementary
#5839CF #CFA339 #65CF39
monochromatic
#2D1C72 #4128A3 #5839CF #826ADB #AB9CE7

Accessibility & contrast

On white

7.24
#5839CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5839CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5839CF
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5839CF#FFFFFF#000000##FFFFFF
##5839CF1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5839cf;
/* rgb */ color: rgb(88, 57, 207);
/* oklch */ color: oklch(47.9% 0.216 284.2);
Tailwind
colors: {
  custom: {
    50: '#9473df',
    500: '#5839cf',
    950: '#000000',
  },
}
SCSS
$custom: #5839cf;
$custom-light: #9473df;
$custom-dark: #000000;
JSON
{
  "hex": "#5839cf",
  "rgb": {
    "r": 88,
    "g": 57,
    "b": 207
  },
  "hsl": {
    "h": 252.4,
    "s": 60.976,
    "l": 51.765
  },
  "oklch": {
    "l": 0.47929,
    "c": 0.21589,
    "h": 284.2
  },
  "luminance": 0.09506
}

Semantic roles & 50–950 ramp

primary
#5839CF
secondary
#C5D391
accent
#E444C3
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5839CF

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

Preview Lab → · Contrast checker → · Palette generator →

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