#804BBB#804BBB

#804BBB is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.8% C 0.171 H 302.8°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#804BBB
RGBrgb(128, 75, 187)
HSLhsl(268, 45%, 51%)
HSVhsv(268, 60%, 73%)
CMYKcmyk(31.6%, 59.9%, 0%, 26.7%)
CIE-LABlab(43.08, 44.65, -50.86)
CIE-LCHlch(43.08, 67.68, 311.28°)
OKLaboklab(52.84% 0.0927 -0.144)
OKLCHoklch(52.84% 0.171 302.8)
XYZxyz(20.3857, 13.2092, 48.4797)
Luminance0.1321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BBB #86BB4B
analogous
#4B4EBB #804BBB #B84BBB
triadic
#804BBB #BB804B #4BBB80
tetradic
#804BBB #BB4B4E #86BB4B #4BBBB8
square
#804BBB #BB4B4E #86BB4B #4BBBB8
split-complementary
#804BBB #BBB84B #4EBB4B
monochromatic
#442665 #623792 #804BBB #9F77CC #BFA4DD

Accessibility & contrast

On white

5.77
#804BBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#804BBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BBB
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BBB#FFFFFF#000000##FFFFFF
##804BBB1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1065BF
Deuteranopia (green-blind)
#2D65B8
Tritanopia (blue-blind)
#75627C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #804bbb;
/* rgb */ color: rgb(128, 75, 187);
/* oklch */ color: oklch(52.8% 0.171 302.8);
Tailwind
colors: {
  custom: {
    50: '#a980d0',
    500: '#804bbb',
    950: '#000000',
  },
}
SCSS
$custom: #804bbb;
$custom-light: #a980d0;
$custom-dark: #000000;
JSON
{
  "hex": "#804bbb",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 187
  },
  "hsl": {
    "h": 268.393,
    "s": 45.161,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52836,
    "c": 0.17123,
    "h": 302.8
  },
  "luminance": 0.13209
}

Semantic roles & 50–950 ramp

primary
#804BBB
secondary
#B2CA98
accent
#D55397
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #804BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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