#5827A8#5827A8

#5827A8 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.190 H 293.9°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#5827A8
RGBrgb(88, 39, 168)
HSLhsl(263, 62%, 41%)
HSVhsv(263, 77%, 66%)
CMYKcmyk(47.6%, 76.8%, 0%, 34.1%)
CIE-LABlab(30.28, 50.04, -60.57)
CIE-LCHlch(30.28, 78.56, 309.56°)
OKLaboklab(42.16% 0.0768 -0.1737)
OKLCHoklch(42.16% 0.19 293.9)
XYZxyz(11.8160, 6.3525, 37.6418)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5827A8 #77A827
analogous
#2736A8 #5827A8 #9827A8
triadic
#5827A8 #A85827 #27A858
tetradic
#5827A8 #A82736 #77A827 #27A898
square
#5827A8 #A82736 #77A827 #27A898
split-complementary
#5827A8 #A89827 #36A827
monochromatic
#241045 #3E1B76 #5827A8 #743BD1 #976CDD

Accessibility & contrast

On white

9.25
#5827A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5827A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5827A8
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5827A8#FFFFFF#000000##FFFFFF
##5827A81.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AC
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#404A66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5827a8;
/* rgb */ color: rgb(88, 39, 168);
/* oklch */ color: oklch(42.2% 0.190 293.9);
Tailwind
colors: {
  custom: {
    50: '#8f67c3',
    500: '#5827a8',
    950: '#000000',
  },
}
SCSS
$custom: #5827a8;
$custom-light: #8f67c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5827a8",
  "rgb": {
    "r": 88,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 262.791,
    "s": 62.319,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42161,
    "c": 0.18995,
    "h": 293.9
  },
  "luminance": 0.06353
}

Semantic roles & 50–950 ramp

primary
#5827A8
secondary
#A0C367
accent
#E542A7
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5827A8

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

Preview Lab → · Contrast checker → · Palette generator →

#5827A8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva