#5839F2#5839F2

#5839F2 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.3% C 0.256 H 280.0°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#5839F2
RGBrgb(88, 57, 242)
HSLhsl(250, 88%, 59%)
HSVhsv(250, 76%, 95%)
CMYKcmyk(63.6%, 76.4%, 0%, 5.1%)
CIE-LABlab(40.26, 62.18, -87.19)
CIE-LCHlch(40.26, 107.09, 305.50°)
OKLaboklab(51.27% 0.0446 -0.2517)
OKLCHoklch(51.27% 0.256 280)
XYZxyz(21.5095, 11.4101, 85.0560)
Luminance0.1141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5839F2 #D3F239
analogous
#3976F2 #5839F2 #B439F2
triadic
#5839F2 #F25839 #39F258
tetradic
#5839F2 #F23976 #D3F239 #39F2B4
square
#5839F2 #F23976 #D3F239 #39F2B4
split-complementary
#5839F2 #F2B439 #76F239
monochromatic
#250BA6 #320FDF #5839F2 #8872F6 #B9ACFA

Accessibility & contrast

On white

6.40
#5839F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#5839F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5839F2
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5839F2#FFFFFF#000000##FFFFFF
##5839F21.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065F7
Deuteranopia (green-blind)
#0058EF
Tritanopia (blue-blind)
#007095
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5839f2;
/* rgb */ color: rgb(88, 57, 242);
/* oklch */ color: oklch(51.3% 0.256 280.0);
Tailwind
colors: {
  custom: {
    50: '#9a74f8',
    500: '#5839f2',
    950: '#000000',
  },
}
SCSS
$custom: #5839f2;
$custom-light: #9a74f8;
$custom-dark: #000000;
JSON
{
  "hex": "#5839f2",
  "rgb": {
    "r": 88,
    "g": 57,
    "b": 242
  },
  "hsl": {
    "h": 250.054,
    "s": 87.678,
    "l": 58.627
  },
  "oklch": {
    "l": 0.51265,
    "c": 0.25562,
    "h": 280
  },
  "luminance": 0.11412
}

Semantic roles & 50–950 ramp

primary
#5839F2
secondary
#DCE89F
accent
#FE2ADA
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#100917
muted
#7F7B85

Preview Lab

Preview with #5839F2

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

Preview Lab → · Contrast checker → · Palette generator →

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