#804BE7#804BE7

#804BE7 is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.0% C 0.222 H 293.5°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#804BE7
RGBrgb(128, 75, 231)
HSLhsl(260, 76%, 60%)
HSVhsv(260, 68%, 91%)
CMYKcmyk(44.6%, 67.5%, 0%, 9.4%)
CIE-LABlab(46.16, 55.95, -71.16)
CIE-LCHlch(46.16, 90.52, 308.18°)
OKLaboklab(56.04% 0.0887 -0.2036)
OKLCHoklch(56.04% 0.222 293.5)
XYZxyz(25.8380, 15.3901, 77.1950)
Luminance0.1539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BE7 #B2E74B
analogous
#4B64E7 #804BE7 #CE4BE7
triadic
#804BE7 #E7804B #4BE780
tetradic
#804BE7 #E74B64 #B2E74B #4BE7CE
square
#804BE7 #E74B64 #B2E74B #4BE7CE
split-complementary
#804BE7 #E7CE4B #64E74B
monochromatic
#4516A2 #5C1DD8 #804BE7 #A681EE #CCB7F5

Accessibility & contrast

On white

5.15
#804BE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#804BE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BE7
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BE7#FFFFFF#000000##FFFFFF
##804BE71.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEC
Deuteranopia (green-blind)
#006BE4
Tritanopia (blue-blind)
#627193
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #804be7;
/* rgb */ color: rgb(128, 75, 231);
/* oklch */ color: oklch(56.0% 0.222 293.5);
Tailwind
colors: {
  custom: {
    50: '#ad81f0',
    500: '#804be7',
    950: '#000000',
  },
}
SCSS
$custom: #804be7;
$custom-light: #ad81f0;
$custom-dark: #000000;
JSON
{
  "hex": "#804be7",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 231
  },
  "hsl": {
    "h": 260.385,
    "s": 76.471,
    "l": 60
  },
  "oklch": {
    "l": 0.56041,
    "c": 0.22211,
    "h": 293.5
  },
  "luminance": 0.15391
}

Semantic roles & 50–950 ramp

primary
#804BE7
secondary
#D1E5A9
accent
#F335B2
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #804BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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