#5845AF#5845AF

#5845AF is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.0% C 0.162 H 286.6°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#5845AF
RGBrgb(88, 69, 175)
HSLhsl(251, 43%, 48%)
HSVhsv(251, 61%, 69%)
CMYKcmyk(49.7%, 60.6%, 0%, 31.4%)
CIE-LABlab(36.79, 35.81, -54.15)
CIE-LCHlch(36.79, 64.92, 303.48°)
OKLaboklab(47.01% 0.0463 -0.1549)
OKLCHoklch(47.01% 0.162 286.6)
XYZxyz(13.8882, 9.4255, 41.6366)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5845AF #9CAF45
analogous
#4567AF #5845AF #8D45AF
triadic
#5845AF #AF5845 #45AF58
tetradic
#5845AF #AF4567 #9CAF45 #45AF8D
square
#5845AF #AF4567 #9CAF45 #45AF8D
split-complementary
#5845AF #AF8D45 #67AF45
monochromatic
#2C2257 #423483 #5845AF #7C6CC5 #A398D6

Accessibility & contrast

On white

7.28
#5845AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5845AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5845AF
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5845AF#FFFFFF#000000##FFFFFF
##5845AF1.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#0054AD
Tritanopia (blue-blind)
#395E73
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5845af;
/* rgb */ color: rgb(88, 69, 175);
/* oklch */ color: oklch(47.0% 0.162 286.6);
Tailwind
colors: {
  custom: {
    50: '#8e79c8',
    500: '#5845af',
    950: '#000000',
  },
}
SCSS
$custom: #5845af;
$custom-light: #8e79c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5845af",
  "rgb": {
    "r": 88,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 250.755,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.47008,
    "c": 0.16171,
    "h": 286.6
  },
  "luminance": 0.09426
}

Semantic roles & 50–950 ramp

primary
#5845AF
secondary
#B9C28D
accent
#D355BD
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5845AF

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

Preview Lab → · Contrast checker → · Palette generator →

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