#5827B1#5827B1

#5827B1 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 43.0% C 0.200 H 291.8°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#5827B1
RGBrgb(88, 39, 177)
HSLhsl(261, 64%, 42%)
HSVhsv(261, 78%, 69%)
CMYKcmyk(50.3%, 78%, 0%, 30.6%)
CIE-LABlab(31.11, 52.43, -64.60)
CIE-LCHlch(31.11, 83.20, 309.06°)
OKLaboklab(42.99% 0.0743 -0.1855)
OKLCHoklch(42.99% 0.2 291.8)
XYZxyz(12.6836, 6.6996, 42.2113)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5827B1 #80B127
analogous
#273BB1 #5827B1 #9D27B1
triadic
#5827B1 #B15827 #27B158
tetradic
#5827B1 #B1273B #80B127 #27B19D
square
#5827B1 #B1273B #80B127 #27B19D
split-complementary
#5827B1 #B19D27 #3BB127
monochromatic
#26114D #3F1C7F #5827B1 #7540D5 #9972E0

Accessibility & contrast

On white

8.97
#5827B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5827B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5827B1
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5827B1#FFFFFF#000000##FFFFFF
##5827B11.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#0046AE
Tritanopia (blue-blind)
#3A4E6B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5827b1;
/* rgb */ color: rgb(88, 39, 177);
/* oklch */ color: oklch(43.0% 0.200 291.8);
Tailwind
colors: {
  custom: {
    50: '#9067c9',
    500: '#5827b1',
    950: '#000000',
  },
}
SCSS
$custom: #5827b1;
$custom-light: #9067c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5827b1",
  "rgb": {
    "r": 88,
    "g": 39,
    "b": 177
  },
  "hsl": {
    "h": 261.304,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42992,
    "c": 0.19985,
    "h": 291.8
  },
  "luminance": 0.067
}

Semantic roles & 50–950 ramp

primary
#5827B1
secondary
#A7C76D
accent
#E741AC
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5827B1

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

Preview Lab → · Contrast checker → · Palette generator →

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