#804BB1#804BB1

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

Color values

HEX#804BB1
RGBrgb(128, 75, 177)
HSLhsl(271, 40%, 49%)
HSVhsv(271, 58%, 69%)
CMYKcmyk(27.7%, 57.6%, 0%, 30.6%)
CIE-LABlab(42.45, 42.19, -45.99)
CIE-LCHlch(42.45, 62.42, 312.53°)
OKLaboklab(52.18% 0.0927 -0.1297)
OKLCHoklch(52.18% 0.159 305.5)
XYZxyz(19.3523, 12.7958, 43.0368)
Luminance0.1280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BB1 #7CB14B
analogous
#4D4BB1 #804BB1 #B14BAF
triadic
#804BB1 #B1804B #4BB180
tetradic
#804BB1 #B14D4B #7CB14B #4BAFB1
square
#804BB1 #B14D4B #7CB14B #4BAFB1
split-complementary
#804BB1 #AFB14B #4BB14D
monochromatic
#42275B #613986 #804BB1 #9E75C4 #BCA0D7

Accessibility & contrast

On white

5.90
#804BB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#804BB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BB1
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BB1#FFFFFF#000000##FFFFFF
##804BB11.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2363B4
Deuteranopia (green-blind)
#3864AF
Tritanopia (blue-blind)
#785F77
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #804bb1;
/* rgb */ color: rgb(128, 75, 177);
/* oklch */ color: oklch(52.2% 0.159 305.5);
Tailwind
colors: {
  custom: {
    50: '#a87fc9',
    500: '#804bb1',
    950: '#000000',
  },
}
SCSS
$custom: #804bb1;
$custom-light: #a87fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#804bb1",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 177
  },
  "hsl": {
    "h": 271.176,
    "s": 40.476,
    "l": 49.412
  },
  "oklch": {
    "l": 0.5218,
    "c": 0.15942,
    "h": 305.5
  },
  "luminance": 0.12796
}

Semantic roles & 50–950 ramp

primary
#804BB1
secondary
#ABC394
accent
#D05792
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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