#5845AB#5845AB

#5845AB is a mid, vivid violet. Relative luminance 0.093; OKLCH L 46.7% C 0.156 H 287.3°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#5845AB
RGBrgb(88, 69, 171)
HSLhsl(251, 43%, 47%)
HSVhsv(251, 60%, 67%)
CMYKcmyk(48.5%, 59.6%, 0%, 32.9%)
CIE-LABlab(36.50, 34.59, -52.24)
CIE-LCHlch(36.50, 62.65, 303.51°)
OKLaboklab(46.7% 0.0465 -0.1493)
OKLCHoklch(46.7% 0.156 287.3)
XYZxyz(13.5012, 9.2706, 39.5982)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5845AB #98AB45
analogous
#4565AB #5845AB #8B45AB
triadic
#5845AB #AB5845 #45AB58
tetradic
#5845AB #AB4565 #98AB45 #45AB8B
square
#5845AB #AB4565 #98AB45 #45AB8B
split-complementary
#5845AB #AB8B45 #65AB45
monochromatic
#2B2254 #42337F #5845AB #7B6AC3 #A296D5

Accessibility & contrast

On white

7.36
#5845AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5845AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5845AB
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5845AB#FFFFFF#000000##FFFFFF
##5845AB1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AE
Deuteranopia (green-blind)
#0053A9
Tritanopia (blue-blind)
#3C5C71
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5845ab;
/* rgb */ color: rgb(88, 69, 171);
/* oklch */ color: oklch(46.7% 0.156 287.3);
Tailwind
colors: {
  custom: {
    50: '#8e79c5',
    500: '#5845ab',
    950: '#000000',
  },
}
SCSS
$custom: #5845ab;
$custom-light: #8e79c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5845ab",
  "rgb": {
    "r": 88,
    "g": 69,
    "b": 171
  },
  "hsl": {
    "h": 251.176,
    "s": 42.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46703,
    "c": 0.15638,
    "h": 287.3
  },
  "luminance": 0.09271
}

Semantic roles & 50–950 ramp

primary
#5845AB
secondary
#B7C08B
accent
#D256BB
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5845AB

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

Preview Lab → · Contrast checker → · Palette generator →

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