#804BB2#804BB2

#804BB2 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.2% C 0.161 H 305.3°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#804BB2
RGBrgb(128, 75, 178)
HSLhsl(271, 41%, 50%)
HSVhsv(271, 58%, 70%)
CMYKcmyk(28.1%, 57.9%, 0%, 30.2%)
CIE-LABlab(42.51, 42.44, -46.49)
CIE-LCHlch(42.51, 62.94, 312.39°)
OKLaboklab(52.25% 0.0927 -0.1311)
OKLCHoklch(52.25% 0.161 305.3)
XYZxyz(19.4523, 12.8358, 43.5636)
Luminance0.1284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BB2 #7DB24B
analogous
#4D4BB2 #804BB2 #B24BB0
triadic
#804BB2 #B2804B #4BB280
tetradic
#804BB2 #B24D4B #7DB24B #4BB0B2
square
#804BB2 #B24D4B #7DB24B #4BB0B2
split-complementary
#804BB2 #B0B24B #4BB24D
monochromatic
#42275C #613987 #804BB2 #9E75C5 #BCA0D7

Accessibility & contrast

On white

5.89
#804BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#804BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BB2
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BB2#FFFFFF#000000##FFFFFF
##804BB21.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2263B5
Deuteranopia (green-blind)
#3765B0
Tritanopia (blue-blind)
#775F77
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #804bb2;
/* rgb */ color: rgb(128, 75, 178);
/* oklch */ color: oklch(52.2% 0.161 305.3);
Tailwind
colors: {
  custom: {
    50: '#a87fc9',
    500: '#804bb2',
    950: '#000000',
  },
}
SCSS
$custom: #804bb2;
$custom-light: #a87fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#804bb2",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 178
  },
  "hsl": {
    "h": 270.874,
    "s": 40.711,
    "l": 49.608
  },
  "oklch": {
    "l": 0.52245,
    "c": 0.1606,
    "h": 305.3
  },
  "luminance": 0.12836
}

Semantic roles & 50–950 ramp

primary
#804BB2
secondary
#ACC495
accent
#D15792
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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