#5B47AF#5B47AF

#5B47AF is a mid, vivid violet. Relative luminance 0.098; OKLCH L 47.6% C 0.159 H 287.6°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#5B47AF
RGBrgb(91, 71, 175)
HSLhsl(252, 42%, 48%)
HSVhsv(252, 59%, 69%)
CMYKcmyk(48%, 59.4%, 0%, 31.4%)
CIE-LABlab(37.53, 35.23, -52.94)
CIE-LCHlch(37.53, 63.59, 303.64°)
OKLaboklab(47.62% 0.0481 -0.1513)
OKLCHoklch(47.62% 0.159 287.6)
XYZxyz(14.3032, 9.8252, 41.6919)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B47AF #9BAF47
analogous
#4767AF #5B47AF #8F47AF
triadic
#5B47AF #AF5B47 #47AF5B
tetradic
#5B47AF #AF4767 #9BAF47 #47AF8F
square
#5B47AF #AF4767 #9BAF47 #47AF8F
split-complementary
#5B47AF #AF8F47 #67AF47
monochromatic
#2E2458 #443583 #5B47AF #7F6FC4 #A69AD6

Accessibility & contrast

On white

7.08
#5B47AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5B47AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B47AF
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B47AF#FFFFFF#000000##FFFFFF
##5B47AF1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB2
Deuteranopia (green-blind)
#0056AD
Tritanopia (blue-blind)
#3F5F74
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5b47af;
/* rgb */ color: rgb(91, 71, 175);
/* oklch */ color: oklch(47.6% 0.159 287.6);
Tailwind
colors: {
  custom: {
    50: '#907bc8',
    500: '#5b47af',
    950: '#000000',
  },
}
SCSS
$custom: #5b47af;
$custom-light: #907bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b47af",
  "rgb": {
    "r": 91,
    "g": 71,
    "b": 175
  },
  "hsl": {
    "h": 251.538,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.47615,
    "c": 0.15875,
    "h": 287.6
  },
  "luminance": 0.09826
}

Semantic roles & 50–950 ramp

primary
#5B47AF
secondary
#B9C28F
accent
#D256BA
background
#F9F7FC
surface
#F1EEF8
border
#CBC9D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5B47AF

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

Preview Lab → · Contrast checker → · Palette generator →

#5B47AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva