#804FAA#804FAA

#804FAA is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.4% C 0.145 H 307.0°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#804FAA
RGBrgb(128, 79, 170)
HSLhsl(272, 37%, 49%)
HSVhsv(272, 54%, 67%)
CMYKcmyk(24.7%, 53.5%, 0%, 33.3%)
CIE-LABlab(42.89, 38.28, -41.17)
CIE-LCHlch(42.89, 56.21, 312.92°)
OKLaboklab(52.37% 0.087 -0.1156)
OKLCHoklch(52.37% 0.145 307)
XYZxyz(18.9523, 13.0836, 39.5494)
Luminance0.1308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FAA #79AA4F
analogous
#534FAA #804FAA #AA4FA7
triadic
#804FAA #AA804F #4FAA80
tetradic
#804FAA #AA534F #79AA4F #4FA7AA
square
#804FAA #AA534F #79AA4F #4FA7AA
split-complementary
#804FAA #A7AA4F #4FAA53
monochromatic
#412856 #613C80 #804FAA #9E77C0 #BCA0D3

Accessibility & contrast

On white

5.81
#804FAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#804FAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FAA
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FAA#FFFFFF#000000##FFFFFF
##804FAA1.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3363AD
Deuteranopia (green-blind)
#4266A8
Tritanopia (blue-blind)
#7A5F75
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #804faa;
/* rgb */ color: rgb(128, 79, 170);
/* oklch */ color: oklch(52.4% 0.145 307.0);
Tailwind
colors: {
  custom: {
    50: '#a782c4',
    500: '#804faa',
    950: '#000000',
  },
}
SCSS
$custom: #804faa;
$custom-light: #a782c4;
$custom-dark: #000000;
JSON
{
  "hex": "#804faa",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 170
  },
  "hsl": {
    "h": 272.308,
    "s": 36.546,
    "l": 48.824
  },
  "oklch": {
    "l": 0.52368,
    "c": 0.14467,
    "h": 307
  },
  "luminance": 0.13083
}

Semantic roles & 50–950 ramp

primary
#804FAA
secondary
#A9C095
accent
#CD5B90
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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