#5845A2#5845A2

#5845A2 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.0% C 0.144 H 288.8°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#5845A2
RGBrgb(88, 69, 162)
HSLhsl(252, 40%, 45%)
HSVhsv(252, 57%, 64%)
CMYKcmyk(45.7%, 57.4%, 0%, 36.5%)
CIE-LABlab(35.87, 31.87, -47.88)
CIE-LCHlch(35.87, 57.52, 303.65°)
OKLaboklab(46.04% 0.0466 -0.1365)
OKLCHoklch(46.04% 0.144 288.8)
XYZxyz(12.6724, 8.9391, 35.2331)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5845A2 #8FA245
analogous
#4560A2 #5845A2 #8645A2
triadic
#5845A2 #A25845 #45A258
tetradic
#5845A2 #A24560 #8FA245 #45A286
square
#5845A2 #A24560 #8FA245 #45A286
split-complementary
#5845A2 #A28645 #60A245
monochromatic
#29204C #413377 #5845A2 #7866BE #9E91D0

Accessibility & contrast

On white

7.53
#5845A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5845A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5845A2
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5845A2#FFFFFF#000000##FFFFFF
##5845A21.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B56A5
Deuteranopia (green-blind)
#0F52A0
Tritanopia (blue-blind)
#415A6C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5845a2;
/* rgb */ color: rgb(88, 69, 162);
/* oklch */ color: oklch(46.0% 0.144 288.8);
Tailwind
colors: {
  custom: {
    50: '#8c79be',
    500: '#5845a2',
    950: '#000000',
  },
}
SCSS
$custom: #5845a2;
$custom-light: #8c79be;
$custom-dark: #000000;
JSON
{
  "hex": "#5845a2",
  "rgb": {
    "r": 88,
    "g": 69,
    "b": 162
  },
  "hsl": {
    "h": 252.258,
    "s": 40.26,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46035,
    "c": 0.14423,
    "h": 288.8
  },
  "luminance": 0.0894
}

Semantic roles & 50–950 ramp

primary
#5845A2
secondary
#B1BC87
accent
#D058B8
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0D0912
muted
#7D7B81

Preview Lab

Preview with #5845A2

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

Preview Lab → · Contrast checker → · Palette generator →

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