#804CBB#804CBB

#804CBB is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.0% C 0.170 H 302.6°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#804CBB
RGBrgb(128, 76, 187)
HSLhsl(268, 45%, 52%)
HSVhsv(268, 59%, 73%)
CMYKcmyk(31.6%, 59.4%, 0%, 26.7%)
CIE-LABlab(43.28, 44.11, -50.54)
CIE-LCHlch(43.28, 67.08, 311.12°)
OKLaboklab(52.98% 0.0914 -0.143)
OKLCHoklch(52.98% 0.17 302.6)
XYZxyz(20.4541, 13.3459, 48.5025)
Luminance0.1335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CBB #87BB4C
analogous
#4C50BB #804CBB #B84CBB
triadic
#804CBB #BB804C #4CBB80
tetradic
#804CBB #BB4C50 #87BB4C #4CBBB8
square
#804CBB #BB4C50 #87BB4C #4CBBB8
split-complementary
#804CBB #BBB84C #50BB4C
monochromatic
#442766 #623892 #804CBB #9F78CC #BFA5DD

Accessibility & contrast

On white

5.72
#804CBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#804CBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CBB
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CBB#FFFFFF#000000##FFFFFF
##804CBB1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1465BF
Deuteranopia (green-blind)
#2F66B8
Tritanopia (blue-blind)
#75637C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #804cbb;
/* rgb */ color: rgb(128, 76, 187);
/* oklch */ color: oklch(53.0% 0.170 302.6);
Tailwind
colors: {
  custom: {
    50: '#a980d0',
    500: '#804cbb',
    950: '#000000',
  },
}
SCSS
$custom: #804cbb;
$custom-light: #a980d0;
$custom-dark: #000000;
JSON
{
  "hex": "#804cbb",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 187
  },
  "hsl": {
    "h": 268.108,
    "s": 44.939,
    "l": 51.569
  },
  "oklch": {
    "l": 0.52984,
    "c": 0.16976,
    "h": 302.6
  },
  "luminance": 0.13346
}

Semantic roles & 50–950 ramp

primary
#804CBB
secondary
#B3CA99
accent
#D55398
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #804CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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