#804CB1#804CB1

#804CB1 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.3% C 0.158 H 305.4°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#804CB1
RGBrgb(128, 76, 177)
HSLhsl(271, 40%, 50%)
HSVhsv(271, 57%, 69%)
CMYKcmyk(27.7%, 57.1%, 0%, 30.6%)
CIE-LABlab(42.66, 41.64, -45.66)
CIE-LCHlch(42.66, 61.80, 312.37°)
OKLaboklab(52.33% 0.0914 -0.1287)
OKLCHoklch(52.33% 0.158 305.4)
XYZxyz(19.4206, 12.9325, 43.0596)
Luminance0.1293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CB1 #7DB14C
analogous
#4E4CB1 #804CB1 #B14CB0
triadic
#804CB1 #B1804C #4CB180
tetradic
#804CB1 #B14E4C #7DB14C #4CB0B1
square
#804CB1 #B14E4C #7DB14C #4CB0B1
split-complementary
#804CB1 #B0B14C #4CB14E
monochromatic
#42275B #613A86 #804CB1 #9E76C4 #BCA1D7

Accessibility & contrast

On white

5.86
#804CB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#804CB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CB1
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CB1#FFFFFF#000000##FFFFFF
##804CB11.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2563B4
Deuteranopia (green-blind)
#3965AF
Tritanopia (blue-blind)
#785F77
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #804cb1;
/* rgb */ color: rgb(128, 76, 177);
/* oklch */ color: oklch(52.3% 0.158 305.4);
Tailwind
colors: {
  custom: {
    50: '#a880c9',
    500: '#804cb1',
    950: '#000000',
  },
}
SCSS
$custom: #804cb1;
$custom-light: #a880c9;
$custom-dark: #000000;
JSON
{
  "hex": "#804cb1",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 177
  },
  "hsl": {
    "h": 270.891,
    "s": 39.921,
    "l": 49.608
  },
  "oklch": {
    "l": 0.52332,
    "c": 0.15787,
    "h": 305.4
  },
  "luminance": 0.12932
}

Semantic roles & 50–950 ramp

primary
#804CB1
secondary
#ACC395
accent
#D05892
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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