#5827A2#5827A2

#5827A2 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.183 H 295.3°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#5827A2
RGBrgb(88, 39, 162)
HSLhsl(264, 61%, 39%)
HSVhsv(264, 76%, 64%)
CMYKcmyk(45.7%, 75.9%, 0%, 36.5%)
CIE-LABlab(29.75, 48.45, -57.82)
CIE-LCHlch(29.75, 75.44, 309.96°)
OKLaboklab(41.62% 0.0784 -0.1657)
OKLCHoklch(41.62% 0.183 295.3)
XYZxyz(11.2699, 6.1341, 34.7656)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5827A2 #71A227
analogous
#2734A2 #5827A2 #9527A2
triadic
#5827A2 #A25827 #27A258
tetradic
#5827A2 #A22734 #71A227 #27A295
square
#5827A2 #A22734 #71A227 #27A295
split-complementary
#5827A2 #A29527 #34A227
monochromatic
#220F3F #3D1B71 #5827A2 #7437CF #9669DB

Accessibility & contrast

On white

9.43
#5827A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5827A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5827A2
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5827A2#FFFFFF#000000##FFFFFF
##5827A21.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#434863
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5827a2;
/* rgb */ color: rgb(88, 39, 162);
/* oklch */ color: oklch(41.6% 0.183 295.3);
Tailwind
colors: {
  custom: {
    50: '#8e66bf',
    500: '#5827a2',
    950: '#000000',
  },
}
SCSS
$custom: #5827a2;
$custom-light: #8e66bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5827a2",
  "rgb": {
    "r": 88,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 263.902,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41619,
    "c": 0.18329,
    "h": 295.3
  },
  "luminance": 0.06134
}

Semantic roles & 50–950 ramp

primary
#5827A2
secondary
#9CC164
accent
#E443A4
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5827A2

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

Preview Lab → · Contrast checker → · Palette generator →

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