#804EBC#804EBC

#804EBC is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.4% C 0.168 H 302.0°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#804EBC
RGBrgb(128, 78, 188)
HSLhsl(267, 45%, 52%)
HSVhsv(267, 59%, 74%)
CMYKcmyk(31.9%, 58.5%, 0%, 26.3%)
CIE-LABlab(43.75, 43.27, -50.36)
CIE-LCHlch(43.75, 66.40, 310.67°)
OKLaboklab(53.35% 0.0889 -0.1425)
OKLCHoklch(53.35% 0.168 302)
XYZxyz(20.7015, 13.6688, 49.1149)
Luminance0.1367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804EBC #8ABC4E
analogous
#4E53BC #804EBC #B74EBC
triadic
#804EBC #BC804E #4EBC80
tetradic
#804EBC #BC4E53 #8ABC4E #4EBCB7
square
#804EBC #BC4E53 #8ABC4E #4EBCB7
split-complementary
#804EBC #BCB74E #53BC4E
monochromatic
#452768 #623895 #804EBC #A07ACD #C0A7DE

Accessibility & contrast

On white

5.62
#804EBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#804EBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804EBC
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804EBC#FFFFFF#000000##FFFFFF
##804EBC1.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A67C0
Deuteranopia (green-blind)
#3167B9
Tritanopia (blue-blind)
#74647D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #804ebc;
/* rgb */ color: rgb(128, 78, 188);
/* oklch */ color: oklch(53.4% 0.168 302.0);
Tailwind
colors: {
  custom: {
    50: '#a882d1',
    500: '#804ebc',
    950: '#000000',
  },
}
SCSS
$custom: #804ebc;
$custom-light: #a882d1;
$custom-dark: #000000;
JSON
{
  "hex": "#804ebc",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 188
  },
  "hsl": {
    "h": 267.273,
    "s": 45.082,
    "l": 52.157
  },
  "oklch": {
    "l": 0.53351,
    "c": 0.16798,
    "h": 302
  },
  "luminance": 0.13669
}

Semantic roles & 50–950 ramp

primary
#804EBC
secondary
#B5CB9B
accent
#D5539A
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #804EBC

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

Preview Lab → · Contrast checker → · Palette generator →

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