#5845B2#5845B2

#5845B2 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.2% C 0.166 H 286.2°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#5845B2
RGBrgb(88, 69, 178)
HSLhsl(250, 44%, 48%)
HSVhsv(250, 61%, 70%)
CMYKcmyk(50.6%, 61.2%, 0%, 30.2%)
CIE-LABlab(37.01, 36.72, -55.57)
CIE-LCHlch(37.01, 66.61, 303.46°)
OKLaboklab(47.24% 0.0462 -0.1591)
OKLCHoklch(47.24% 0.166 286.2)
XYZxyz(14.1861, 9.5446, 43.2057)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5845B2 #9FB245
analogous
#4568B2 #5845B2 #8E45B2
triadic
#5845B2 #B25845 #45B258
tetradic
#5845B2 #B24568 #9FB245 #45B28E
square
#5845B2 #B24568 #9FB245 #45B28E
split-complementary
#5845B2 #B28E45 #68B245
monochromatic
#2C235A #423486 #5845B2 #7D6EC7 #A49AD8

Accessibility & contrast

On white

7.22
#5845B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5845B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5845B2
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5845B2#FFFFFF#000000##FFFFFF
##5845B21.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#0054B0
Tritanopia (blue-blind)
#375F75
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5845b2;
/* rgb */ color: rgb(88, 69, 178);
/* oklch */ color: oklch(47.2% 0.166 286.2);
Tailwind
colors: {
  custom: {
    50: '#8e79ca',
    500: '#5845b2',
    950: '#000000',
  },
}
SCSS
$custom: #5845b2;
$custom-light: #8e79ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5845b2",
  "rgb": {
    "r": 88,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 250.459,
    "s": 44.13,
    "l": 48.431
  },
  "oklch": {
    "l": 0.4724,
    "c": 0.16568,
    "h": 286.2
  },
  "luminance": 0.09545
}

Semantic roles & 50–950 ramp

primary
#5845B2
secondary
#BBC48F
accent
#D454BE
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5845B2

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

Preview Lab → · Contrast checker → · Palette generator →

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