#804BA7#804BA7

#804BA7 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.6% C 0.148 H 308.7°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#804BA7
RGBrgb(128, 75, 167)
HSLhsl(275, 38%, 47%)
HSVhsv(275, 55%, 65%)
CMYKcmyk(23.4%, 55.1%, 0%, 34.5%)
CIE-LABlab(41.86, 39.79, -41.02)
CIE-LCHlch(41.86, 57.15, 314.13°)
OKLaboklab(51.56% 0.0923 -0.1152)
OKLCHoklch(51.56% 0.148 308.7)
XYZxyz(18.3918, 12.4116, 37.9785)
Luminance0.1241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BA7 #72A74B
analogous
#524BA7 #804BA7 #A74BA0
triadic
#804BA7 #A7804B #4BA780
tetradic
#804BA7 #A7524B #72A74B #4BA0A7
square
#804BA7 #A7524B #72A74B #4BA0A7
split-complementary
#804BA7 #A0A74B #4BA752
monochromatic
#3F2553 #60387D #804BA7 #9E70BF #BA9BD2

Accessibility & contrast

On white

6.03
#804BA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#804BA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BA7
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BA7#FFFFFF#000000##FFFFFF
##804BA71.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E61AA
Deuteranopia (green-blind)
#4063A5
Tritanopia (blue-blind)
#7B5B72
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #804ba7;
/* rgb */ color: rgb(128, 75, 167);
/* oklch */ color: oklch(51.6% 0.148 308.7);
Tailwind
colors: {
  custom: {
    50: '#a77fc1',
    500: '#804ba7',
    950: '#000000',
  },
}
SCSS
$custom: #804ba7;
$custom-light: #a77fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#804ba7",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 167
  },
  "hsl": {
    "h": 274.565,
    "s": 38.017,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51556,
    "c": 0.14758,
    "h": 308.7
  },
  "luminance": 0.12411
}

Semantic roles & 50–950 ramp

primary
#804BA7
secondary
#A3BE8F
accent
#CE5A8B
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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