#804BBA#804BBA

#804BBA is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.8% C 0.170 H 303.0°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#804BBA
RGBrgb(128, 75, 186)
HSLhsl(269, 45%, 51%)
HSVhsv(269, 60%, 73%)
CMYKcmyk(31.2%, 59.7%, 0%, 27.1%)
CIE-LABlab(43.01, 44.41, -50.38)
CIE-LCHlch(43.01, 67.16, 311.39°)
OKLaboklab(52.77% 0.0927 -0.1426)
OKLCHoklch(52.77% 0.17 303)
XYZxyz(20.2791, 13.1665, 47.9179)
Luminance0.1317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BBA #85BA4B
analogous
#4B4DBA #804BBA #B74BBA
triadic
#804BBA #BA804B #4BBA80
tetradic
#804BBA #BA4B4D #85BA4B #4BBAB7
square
#804BBA #BA4B4D #85BA4B #4BBAB7
split-complementary
#804BBA #BAB74B #4DBA4B
monochromatic
#442664 #623790 #804BBA #9F77CB #BEA3DC

Accessibility & contrast

On white

5.78
#804BBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#804BBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BBA
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BBA#FFFFFF#000000##FFFFFF
##804BBA1.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1364BE
Deuteranopia (green-blind)
#2F65B7
Tritanopia (blue-blind)
#75627B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #804bba;
/* rgb */ color: rgb(128, 75, 186);
/* oklch */ color: oklch(52.8% 0.170 303.0);
Tailwind
colors: {
  custom: {
    50: '#a880cf',
    500: '#804bba',
    950: '#000000',
  },
}
SCSS
$custom: #804bba;
$custom-light: #a880cf;
$custom-dark: #000000;
JSON
{
  "hex": "#804bba",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 186
  },
  "hsl": {
    "h": 268.649,
    "s": 44.578,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52769,
    "c": 0.17006,
    "h": 303
  },
  "luminance": 0.13167
}

Semantic roles & 50–950 ramp

primary
#804BBA
secondary
#B2C998
accent
#D45497
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #804BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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