#804BB7#804BB7

#804BB7 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.6% C 0.167 H 303.8°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#804BB7
RGBrgb(128, 75, 183)
HSLhsl(269, 43%, 51%)
HSVhsv(269, 59%, 72%)
CMYKcmyk(30.1%, 59%, 0%, 28.2%)
CIE-LABlab(42.82, 43.66, -48.93)
CIE-LCHlch(42.82, 65.58, 311.75°)
OKLaboklab(52.57% 0.0927 -0.1383)
OKLCHoklch(52.57% 0.167 303.8)
XYZxyz(19.9635, 13.0403, 46.2559)
Luminance0.1304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BB7 #82B74B
analogous
#4B4CB7 #804BB7 #B64BB7
triadic
#804BB7 #B7804B #4BB780
tetradic
#804BB7 #B74B4C #82B74B #4BB7B6
square
#804BB7 #B74B4C #82B74B #4BB7B6
split-complementary
#804BB7 #B7B64B #4CB74B
monochromatic
#432761 #62388D #804BB7 #9F77C8 #BEA2DA

Accessibility & contrast

On white

5.82
#804BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#804BB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BB7
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BB7#FFFFFF#000000##FFFFFF
##804BB71.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1964BA
Deuteranopia (green-blind)
#3265B5
Tritanopia (blue-blind)
#76617A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #804bb7;
/* rgb */ color: rgb(128, 75, 183);
/* oklch */ color: oklch(52.6% 0.167 303.8);
Tailwind
colors: {
  custom: {
    50: '#a880cd',
    500: '#804bb7',
    950: '#000000',
  },
}
SCSS
$custom: #804bb7;
$custom-light: #a880cd;
$custom-dark: #000000;
JSON
{
  "hex": "#804bb7",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 183
  },
  "hsl": {
    "h": 269.444,
    "s": 42.857,
    "l": 50.588
  },
  "oklch": {
    "l": 0.5257,
    "c": 0.16651,
    "h": 303.8
  },
  "luminance": 0.1304
}

Semantic roles & 50–950 ramp

primary
#804BB7
secondary
#AFC797
accent
#D35595
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804BB7

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

Preview Lab → · Contrast checker → · Palette generator →

#804BB7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva