#804CDB#804CDB

#804CDB is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.3% C 0.207 H 295.5°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#804CDB
RGBrgb(128, 76, 219)
HSLhsl(262, 67%, 58%)
HSVhsv(262, 65%, 86%)
CMYKcmyk(41.6%, 65.3%, 0%, 14.1%)
CIE-LABlab(45.46, 52.30, -65.49)
CIE-LCHlch(45.46, 83.81, 308.61°)
OKLaboklab(55.26% 0.0893 -0.187)
OKLCHoklch(55.26% 0.207 295.5)
XYZxyz(24.2693, 14.8720, 68.5960)
Luminance0.1487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CDB #A7DB4C
analogous
#4C5FDB #804CDB #C74CDB
triadic
#804CDB #DB804C #4CDB80
tetradic
#804CDB #DB4C5F #A7DB4C #4CDBC7
square
#804CDB #DB4C5F #A7DB4C #4CDBC7
split-complementary
#804CDB #DBC74C #5FDB4C
monochromatic
#471D90 #6027C3 #804CDB #A47FE5 #C8B2EF

Accessibility & contrast

On white

5.28
#804CDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#804CDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CDB
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CDB#FFFFFF#000000##FFFFFF
##804CDB1.005.283.975.28
#FFFFFF5.281.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDF
Deuteranopia (green-blind)
#0069D8
Tritanopia (blue-blind)
#686E8D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #804cdb;
/* rgb */ color: rgb(128, 76, 219);
/* oklch */ color: oklch(55.3% 0.207 295.5);
Tailwind
colors: {
  custom: {
    50: '#ab81e7',
    500: '#804cdb',
    950: '#000000',
  },
}
SCSS
$custom: #804cdb;
$custom-light: #ab81e7;
$custom-dark: #000000;
JSON
{
  "hex": "#804cdb",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 219
  },
  "hsl": {
    "h": 261.818,
    "s": 66.512,
    "l": 57.843
  },
  "oklch": {
    "l": 0.55255,
    "c": 0.20721,
    "h": 295.5
  },
  "luminance": 0.14873
}

Semantic roles & 50–950 ramp

primary
#804CDB
secondary
#C9DEA5
accent
#E93EAB
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #804CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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