#804BAF#804BAF

#804BAF is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.1% C 0.157 H 306.1°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#804BAF
RGBrgb(128, 75, 175)
HSLhsl(272, 40%, 49%)
HSVhsv(272, 57%, 69%)
CMYKcmyk(26.9%, 57.1%, 0%, 31.4%)
CIE-LABlab(42.33, 41.71, -45.01)
CIE-LCHlch(42.33, 61.36, 312.82°)
OKLaboklab(52.05% 0.0926 -0.1268)
OKLCHoklch(52.05% 0.157 306.1)
XYZxyz(19.1544, 12.7167, 41.9946)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BAF #7AAF4B
analogous
#4E4BAF #804BAF #AF4BAC
triadic
#804BAF #AF804B #4BAF80
tetradic
#804BAF #AF4E4B #7AAF4B #4BACAF
square
#804BAF #AF4E4B #7AAF4B #4BACAF
split-complementary
#804BAF #ACAF4B #4BAF4E
monochromatic
#412659 #613984 #804BAF #9E74C3 #BC9FD6

Accessibility & contrast

On white

5.93
#804BAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#804BAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BAF
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BAF#FFFFFF#000000##FFFFFF
##804BAF1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2662B2
Deuteranopia (green-blind)
#3A64AD
Tritanopia (blue-blind)
#785E76
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #804baf;
/* rgb */ color: rgb(128, 75, 175);
/* oklch */ color: oklch(52.1% 0.157 306.1);
Tailwind
colors: {
  custom: {
    50: '#a87fc7',
    500: '#804baf',
    950: '#000000',
  },
}
SCSS
$custom: #804baf;
$custom-light: #a87fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#804baf",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 175
  },
  "hsl": {
    "h": 271.8,
    "s": 40,
    "l": 49.02
  },
  "oklch": {
    "l": 0.52053,
    "c": 0.15705,
    "h": 306.1
  },
  "luminance": 0.12716
}

Semantic roles & 50–950 ramp

primary
#804BAF
secondary
#A9C293
accent
#D05890
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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