#5839AF#5839AF

#5839AF is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.1% C 0.177 H 289.4°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#5839AF
RGBrgb(88, 57, 175)
HSLhsl(256, 51%, 45%)
HSVhsv(256, 67%, 69%)
CMYKcmyk(49.7%, 67.4%, 0%, 31.4%)
CIE-LABlab(34.18, 42.78, -58.39)
CIE-LCHlch(34.18, 72.39, 306.23°)
OKLaboklab(45.11% 0.0589 -0.1674)
OKLCHoklch(45.11% 0.177 289.4)
XYZxyz(13.2233, 8.0956, 41.4150)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5839AF #90AF39
analogous
#3955AF #5839AF #9339AF
triadic
#5839AF #AF5839 #39AF58
tetradic
#5839AF #AF3955 #90AF39 #39AF93
square
#5839AF #AF3955 #90AF39 #39AF93
split-complementary
#5839AF #AF9339 #55AF39
monochromatic
#2A1B53 #412A81 #5839AF #785BCA #9E8AD9

Accessibility & contrast

On white

8.02
#5839AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5839AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5839AF
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5839AF#FFFFFF#000000##FFFFFF
##5839AF1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#3A566F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5839af;
/* rgb */ color: rgb(88, 57, 175);
/* oklch */ color: oklch(45.1% 0.177 289.4);
Tailwind
colors: {
  custom: {
    50: '#8f71c8',
    500: '#5839af',
    950: '#000000',
  },
}
SCSS
$custom: #5839af;
$custom-light: #8f71c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5839af",
  "rgb": {
    "r": 88,
    "g": 57,
    "b": 175
  },
  "hsl": {
    "h": 255.763,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45113,
    "c": 0.17747,
    "h": 289.4
  },
  "luminance": 0.08096
}

Semantic roles & 50–950 ramp

primary
#5839AF
secondary
#B2C381
accent
#DA4DB5
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5839AF

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

Preview Lab → · Contrast checker → · Palette generator →

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