#5843AF#5843AF

#5843AF is a mid, vivid violet. Relative luminance 0.092; OKLCH L 46.7% C 0.164 H 287.2°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#5843AF
RGBrgb(88, 67, 175)
HSLhsl(252, 45%, 47%)
HSVhsv(252, 62%, 69%)
CMYKcmyk(49.7%, 61.7%, 0%, 31.4%)
CIE-LABlab(36.34, 37.00, -54.89)
CIE-LCHlch(36.34, 66.20, 303.99°)
OKLaboklab(46.68% 0.0485 -0.1571)
OKLCHoklch(46.68% 0.164 287.2)
XYZxyz(13.7673, 9.1835, 41.5963)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5843AF #9AAF43
analogous
#4364AF #5843AF #8E43AF
triadic
#5843AF #AF5843 #43AF58
tetradic
#5843AF #AF4364 #9AAF43 #43AF8E
square
#5843AF #AF4364 #9AAF43 #43AF8E
split-complementary
#5843AF #AF8E43 #64AF43
monochromatic
#2B2156 #423283 #5843AF #7B69C6 #A296D7

Accessibility & contrast

On white

7.40
#5843AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5843AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5843AF
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5843AF#FFFFFF#000000##FFFFFF
##5843AF1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B2
Deuteranopia (green-blind)
#0052AD
Tritanopia (blue-blind)
#395C72
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5843af;
/* rgb */ color: rgb(88, 67, 175);
/* oklch */ color: oklch(46.7% 0.164 287.2);
Tailwind
colors: {
  custom: {
    50: '#8e78c8',
    500: '#5843af',
    950: '#000000',
  },
}
SCSS
$custom: #5843af;
$custom-light: #8e78c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5843af",
  "rgb": {
    "r": 88,
    "g": 67,
    "b": 175
  },
  "hsl": {
    "h": 251.667,
    "s": 44.628,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46675,
    "c": 0.16443,
    "h": 287.2
  },
  "luminance": 0.09184
}

Semantic roles & 50–950 ramp

primary
#5843AF
secondary
#B8C28B
accent
#D453BB
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5843AF

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

Preview Lab → · Contrast checker → · Palette generator →

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