#5845AE#5845AE

#5845AE is a mid, vivid violet. Relative luminance 0.094; OKLCH L 46.9% C 0.160 H 286.8°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#5845AE
RGBrgb(88, 69, 174)
HSLhsl(251, 43%, 48%)
HSVhsv(251, 60%, 68%)
CMYKcmyk(49.4%, 60.3%, 0%, 31.8%)
CIE-LABlab(36.72, 35.50, -53.67)
CIE-LCHlch(36.72, 64.35, 303.48°)
OKLaboklab(46.93% 0.0464 -0.1535)
OKLCHoklch(46.93% 0.16 286.8)
XYZxyz(13.7904, 9.3863, 41.1213)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5845AE #9BAE45
analogous
#4567AE #5845AE #8C45AE
triadic
#5845AE #AE5845 #45AE58
tetradic
#5845AE #AE4567 #9BAE45 #45AE8C
square
#5845AE #AE4567 #9BAE45 #45AE8C
split-complementary
#5845AE #AE8C45 #67AE45
monochromatic
#2C2256 #423482 #5845AE #7C6CC5 #A397D6

Accessibility & contrast

On white

7.30
#5845AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5845AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5845AE
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5845AE#FFFFFF#000000##FFFFFF
##5845AE1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B1
Deuteranopia (green-blind)
#0053AC
Tritanopia (blue-blind)
#3A5D73
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5845ae;
/* rgb */ color: rgb(88, 69, 174);
/* oklch */ color: oklch(46.9% 0.160 286.8);
Tailwind
colors: {
  custom: {
    50: '#8e79c7',
    500: '#5845ae',
    950: '#000000',
  },
}
SCSS
$custom: #5845ae;
$custom-light: #8e79c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5845ae",
  "rgb": {
    "r": 88,
    "g": 69,
    "b": 174
  },
  "hsl": {
    "h": 250.857,
    "s": 43.21,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46931,
    "c": 0.16039,
    "h": 286.8
  },
  "luminance": 0.09387
}

Semantic roles & 50–950 ramp

primary
#5845AE
secondary
#B8C28D
accent
#D355BC
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5845AE

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

Preview Lab → · Contrast checker → · Palette generator →

#5845AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva