#804DA8#804DA8

#804DA8 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 51.9% C 0.146 H 308.0°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#804DA8
RGBrgb(128, 77, 168)
HSLhsl(274, 37%, 48%)
HSVhsv(274, 54%, 66%)
CMYKcmyk(23.8%, 54.2%, 0%, 34.1%)
CIE-LABlab(42.34, 38.92, -40.85)
CIE-LCHlch(42.34, 56.42, 313.61°)
OKLaboklab(51.93% 0.0896 -0.1147)
OKLCHoklch(51.93% 0.146 308)
XYZxyz(18.6224, 12.7243, 38.5132)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DA8 #75A84D
analogous
#524DA8 #804DA8 #A84DA2
triadic
#804DA8 #A8804D #4DA880
tetradic
#804DA8 #A8524D #75A84D #4DA2A8
square
#804DA8 #A8524D #75A84D #4DA2A8
split-complementary
#804DA8 #A2A84D #4DA852
monochromatic
#402754 #603A7E #804DA8 #9E73BF #BB9DD2

Accessibility & contrast

On white

5.92
#804DA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#804DA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DA8
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DA8#FFFFFF#000000##FFFFFF
##804DA81.005.923.545.92
#FFFFFF5.921.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3162AB
Deuteranopia (green-blind)
#4265A6
Tritanopia (blue-blind)
#7A5D73
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #804da8;
/* rgb */ color: rgb(128, 77, 168);
/* oklch */ color: oklch(51.9% 0.146 308.0);
Tailwind
colors: {
  custom: {
    50: '#a781c2',
    500: '#804da8',
    950: '#000000',
  },
}
SCSS
$custom: #804da8;
$custom-light: #a781c2;
$custom-dark: #000000;
JSON
{
  "hex": "#804da8",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 168
  },
  "hsl": {
    "h": 273.626,
    "s": 37.143,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51929,
    "c": 0.14552,
    "h": 308
  },
  "luminance": 0.12724
}

Semantic roles & 50–950 ramp

primary
#804DA8
secondary
#A6BF92
accent
#CD5B8D
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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