#804FB7#804FB7

#804FB7 is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.2% C 0.160 H 303.1°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#804FB7
RGBrgb(128, 79, 183)
HSLhsl(268, 42%, 51%)
HSVhsv(268, 57%, 72%)
CMYKcmyk(30.1%, 56.8%, 0%, 28.2%)
CIE-LABlab(43.65, 41.47, -47.60)
CIE-LCHlch(43.65, 63.13, 311.06°)
OKLaboklab(53.18% 0.0876 -0.1344)
OKLCHoklch(53.18% 0.16 303.1)
XYZxyz(20.2434, 13.6001, 46.3492)
Luminance0.1360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FB7 #86B74F
analogous
#4F52B7 #804FB7 #B44FB7
triadic
#804FB7 #B7804F #4FB780
tetradic
#804FB7 #B74F52 #86B74F #4FB7B4
square
#804FB7 #B74F52 #86B74F #4FB7B4
split-complementary
#804FB7 #B7B44F #52B74F
monochromatic
#442963 #623A8F #804FB7 #9F7AC9 #BFA6DB

Accessibility & contrast

On white

5.65
#804FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#804FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FB7
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FB7#FFFFFF#000000##FFFFFF
##804FB71.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2566BA
Deuteranopia (green-blind)
#3767B5
Tritanopia (blue-blind)
#76637B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #804fb7;
/* rgb */ color: rgb(128, 79, 183);
/* oklch */ color: oklch(53.2% 0.160 303.1);
Tailwind
colors: {
  custom: {
    50: '#a882cd',
    500: '#804fb7',
    950: '#000000',
  },
}
SCSS
$custom: #804fb7;
$custom-light: #a882cd;
$custom-dark: #000000;
JSON
{
  "hex": "#804fb7",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 183
  },
  "hsl": {
    "h": 268.269,
    "s": 41.935,
    "l": 51.373
  },
  "oklch": {
    "l": 0.53178,
    "c": 0.16044,
    "h": 303.1
  },
  "luminance": 0.136
}

Semantic roles & 50–950 ramp

primary
#804FB7
secondary
#B2C89A
accent
#D25697
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B13
muted
#7F7C82

Preview Lab

Preview with #804FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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