#5838AA#5838AA

#5838AA is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.5% C 0.173 H 290.6°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#5838AA
RGBrgb(88, 56, 170)
HSLhsl(257, 50%, 44%)
HSVhsv(257, 67%, 67%)
CMYKcmyk(48.2%, 67.1%, 0%, 33.3%)
CIE-LABlab(33.57, 41.89, -56.39)
CIE-LCHlch(33.57, 70.25, 306.60°)
OKLaboklab(44.55% 0.0606 -0.1615)
OKLCHoklch(44.55% 0.173 290.6)
XYZxyz(12.6923, 7.8049, 38.8601)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5838AA #8AAA38
analogous
#3851AA #5838AA #9138AA
triadic
#5838AA #AA5838 #38AA58
tetradic
#5838AA #AA3851 #8AAA38 #38AA91
square
#5838AA #AA3851 #8AAA38 #38AA91
split-complementary
#5838AA #AA9138 #51AA38
monochromatic
#281A4E #40297C #5838AA #7757C8 #9C85D7

Accessibility & contrast

On white

8.20
#5838AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5838AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5838AA#FFFFFF#000000##FFFFFF
##5838AA1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#004CA8
Tritanopia (blue-blind)
#3E546C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5838aa;
/* rgb */ color: rgb(88, 56, 170);
/* oklch */ color: oklch(44.5% 0.173 290.6);
Tailwind
colors: {
  custom: {
    50: '#8e71c4',
    500: '#5838aa',
    950: '#000000',
  },
}
SCSS
$custom: #5838aa;
$custom-light: #8e71c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5838aa",
  "rgb": {
    "r": 88,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 256.842,
    "s": 50.442,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4455,
    "c": 0.17255,
    "h": 290.6
  },
  "luminance": 0.07805
}

Semantic roles & 50–950 ramp

primary
#5838AA
secondary
#AEC17D
accent
#DA4EB3
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5838AA

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

Preview Lab → · Contrast checker → · Palette generator →

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