#5841AF#5841AF

#5841AF is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.3% C 0.167 H 287.6°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#5841AF
RGBrgb(88, 65, 175)
HSLhsl(253, 46%, 47%)
HSVhsv(253, 63%, 69%)
CMYKcmyk(49.7%, 62.9%, 0%, 31.4%)
CIE-LABlab(35.89, 38.19, -55.61)
CIE-LCHlch(35.89, 67.46, 304.48°)
OKLaboklab(46.35% 0.0507 -0.1592)
OKLCHoklch(46.35% 0.167 287.6)
XYZxyz(13.6504, 8.9498, 41.5574)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5841AF #98AF41
analogous
#4161AF #5841AF #8F41AF
triadic
#5841AF #AF5841 #41AF58
tetradic
#5841AF #AF4161 #98AF41 #41AF8F
square
#5841AF #AF4161 #98AF41 #41AF8F
split-complementary
#5841AF #AF8F41 #61AF41
monochromatic
#2B2056 #423082 #5841AF #7B67C6 #A293D7

Accessibility & contrast

On white

7.53
#5841AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5841AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5841AF
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5841AF#FFFFFF#000000##FFFFFF
##5841AF1.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)
#0057B3
Deuteranopia (green-blind)
#0051AD
Tritanopia (blue-blind)
#3A5B72
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5841af;
/* rgb */ color: rgb(88, 65, 175);
/* oklch */ color: oklch(46.3% 0.167 287.6);
Tailwind
colors: {
  custom: {
    50: '#8e77c8',
    500: '#5841af',
    950: '#000000',
  },
}
SCSS
$custom: #5841af;
$custom-light: #8e77c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5841af",
  "rgb": {
    "r": 88,
    "g": 65,
    "b": 175
  },
  "hsl": {
    "h": 252.545,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46348,
    "c": 0.16711,
    "h": 287.6
  },
  "luminance": 0.0895
}

Semantic roles & 50–950 ramp

primary
#5841AF
secondary
#B7C289
accent
#D552BA
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5841AF

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

Preview Lab → · Contrast checker → · Palette generator →

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