#804BB8#804BB8

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

Color values

HEX#804BB8
RGBrgb(128, 75, 184)
HSLhsl(269, 43%, 51%)
HSVhsv(269, 59%, 72%)
CMYKcmyk(30.4%, 59.2%, 0%, 27.8%)
CIE-LABlab(42.89, 43.91, -49.41)
CIE-LCHlch(42.89, 66.10, 311.62°)
OKLaboklab(52.64% 0.0927 -0.1397)
OKLCHoklch(52.64% 0.168 303.6)
XYZxyz(20.0679, 13.0821, 46.8060)
Luminance0.1308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BB8 #83B84B
analogous
#4B4CB8 #804BB8 #B64BB8
triadic
#804BB8 #B8804B #4BB880
tetradic
#804BB8 #B84B4C #83B84B #4BB8B6
square
#804BB8 #B84B4C #83B84B #4BB8B6
split-complementary
#804BB8 #B8B64B #4CB84B
monochromatic
#432762 #62388E #804BB8 #9F77C9 #BEA3DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##804BB8#FFFFFF#000000##FFFFFF
##804BB81.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)
#1764BC
Deuteranopia (green-blind)
#3165B5
Tritanopia (blue-blind)
#76617A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #804bb8;
/* rgb */ color: rgb(128, 75, 184);
/* oklch */ color: oklch(52.6% 0.168 303.6);
Tailwind
colors: {
  custom: {
    50: '#a880ce',
    500: '#804bb8',
    950: '#000000',
  },
}
SCSS
$custom: #804bb8;
$custom-light: #a880ce;
$custom-dark: #000000;
JSON
{
  "hex": "#804bb8",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 184
  },
  "hsl": {
    "h": 269.174,
    "s": 43.426,
    "l": 50.784
  },
  "oklch": {
    "l": 0.52636,
    "c": 0.1677,
    "h": 303.6
  },
  "luminance": 0.13082
}

Semantic roles & 50–950 ramp

primary
#804BB8
secondary
#B0C897
accent
#D35596
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #804BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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