#804FB3#804FB3

#804FB3 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 52.9% C 0.156 H 304.2°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#804FB3
RGBrgb(128, 79, 179)
HSLhsl(269, 40%, 51%)
HSVhsv(269, 56%, 70%)
CMYKcmyk(28.5%, 55.9%, 0%, 29.8%)
CIE-LABlab(43.41, 40.48, -45.64)
CIE-LCHlch(43.41, 61.00, 311.57°)
OKLaboklab(52.92% 0.0875 -0.1287)
OKLCHoklch(52.92% 0.156 304.2)
XYZxyz(19.8330, 13.4359, 44.1876)
Luminance0.1344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FB3 #82B34F
analogous
#4F50B3 #804FB3 #B24FB3
triadic
#804FB3 #B3804F #4FB380
tetradic
#804FB3 #B34F50 #82B34F #4FB3B2
square
#804FB3 #B34F50 #82B34F #4FB3B2
split-complementary
#804FB3 #B3B24F #50B34F
monochromatic
#43295F #623B89 #804FB3 #9F7AC5 #BEA4D8

Accessibility & contrast

On white

5.70
#804FB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#804FB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FB3
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FB3#FFFFFF#000000##FFFFFF
##804FB31.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A65B6
Deuteranopia (green-blind)
#3B67B1
Tritanopia (blue-blind)
#776279
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #804fb3;
/* rgb */ color: rgb(128, 79, 179);
/* oklch */ color: oklch(52.9% 0.156 304.2);
Tailwind
colors: {
  custom: {
    50: '#a882ca',
    500: '#804fb3',
    950: '#000000',
  },
}
SCSS
$custom: #804fb3;
$custom-light: #a882ca;
$custom-dark: #000000;
JSON
{
  "hex": "#804fb3",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 179
  },
  "hsl": {
    "h": 269.4,
    "s": 39.683,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52923,
    "c": 0.1556,
    "h": 304.2
  },
  "luminance": 0.13436
}

Semantic roles & 50–950 ramp

primary
#804FB3
secondary
#AFC599
accent
#D05895
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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