#5845AC#5845AC

#5845AC is a mid, vivid violet. Relative luminance 0.093; OKLCH L 46.8% C 0.158 H 287.1°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#5845AC
RGBrgb(88, 69, 172)
HSLhsl(251, 43%, 47%)
HSVhsv(251, 60%, 67%)
CMYKcmyk(48.8%, 59.9%, 0%, 32.5%)
CIE-LABlab(36.57, 34.89, -52.72)
CIE-LCHlch(36.57, 63.22, 303.50°)
OKLaboklab(46.78% 0.0464 -0.1507)
OKLCHoklch(46.78% 0.158 287.1)
XYZxyz(13.5968, 9.3089, 40.1021)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5845AC #99AC45
analogous
#4565AC #5845AC #8C45AC
triadic
#5845AC #AC5845 #45AC58
tetradic
#5845AC #AC4565 #99AC45 #45AC8C
square
#5845AC #AC4565 #99AC45 #45AC8C
split-complementary
#5845AC #AC8C45 #65AC45
monochromatic
#2B2255 #423380 #5845AC #7B6BC4 #A296D5

Accessibility & contrast

On white

7.34
#5845AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5845AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5845AC
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5845AC#FFFFFF#000000##FFFFFF
##5845AC1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AF
Deuteranopia (green-blind)
#0053AA
Tritanopia (blue-blind)
#3B5D72
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5845ac;
/* rgb */ color: rgb(88, 69, 172);
/* oklch */ color: oklch(46.8% 0.158 287.1);
Tailwind
colors: {
  custom: {
    50: '#8e79c5',
    500: '#5845ac',
    950: '#000000',
  },
}
SCSS
$custom: #5845ac;
$custom-light: #8e79c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5845ac",
  "rgb": {
    "r": 88,
    "g": 69,
    "b": 172
  },
  "hsl": {
    "h": 251.068,
    "s": 42.739,
    "l": 47.255
  },
  "oklch": {
    "l": 0.46779,
    "c": 0.15772,
    "h": 287.1
  },
  "luminance": 0.0931
}

Semantic roles & 50–950 ramp

primary
#5845AC
secondary
#B7C18C
accent
#D355BB
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5845AC

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

Preview Lab → · Contrast checker → · Palette generator →

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