#804BE2#804BE2

#804BE2 is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.7% C 0.216 H 294.4°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#804BE2
RGBrgb(128, 75, 226)
HSLhsl(261, 72%, 59%)
HSVhsv(261, 67%, 89%)
CMYKcmyk(43.4%, 66.8%, 0%, 11.4%)
CIE-LABlab(45.79, 54.64, -68.94)
CIE-LCHlch(45.79, 87.97, 308.40°)
OKLaboklab(55.65% 0.0894 -0.1971)
OKLCHoklch(55.65% 0.216 294.4)
XYZxyz(25.1419, 15.1117, 73.5289)
Luminance0.1511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BE2 #ADE24B
analogous
#4B62E2 #804BE2 #CC4BE2
triadic
#804BE2 #E2804B #4BE280
tetradic
#804BE2 #E24B62 #ADE24B #4BE2CC
square
#804BE2 #E24B62 #ADE24B #4BE2CC
split-complementary
#804BE2 #E2CC4B #62E24B
monochromatic
#46199A #5E21CF #804BE2 #A580EA #CAB4F3

Accessibility & contrast

On white

5.22
#804BE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#804BE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BE2
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BE2#FFFFFF#000000##FFFFFF
##804BE21.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE7
Deuteranopia (green-blind)
#006ADF
Tritanopia (blue-blind)
#657090
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #804be2;
/* rgb */ color: rgb(128, 75, 226);
/* oklch */ color: oklch(55.7% 0.216 294.4);
Tailwind
colors: {
  custom: {
    50: '#ac81ec',
    500: '#804be2',
    950: '#000000',
  },
}
SCSS
$custom: #804be2;
$custom-light: #ac81ec;
$custom-dark: #000000;
JSON
{
  "hex": "#804be2",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 226
  },
  "hsl": {
    "h": 261.06,
    "s": 72.249,
    "l": 59.02
  },
  "oklch": {
    "l": 0.55653,
    "c": 0.21644,
    "h": 294.4
  },
  "luminance": 0.15112
}

Semantic roles & 50–950 ramp

primary
#804BE2
secondary
#CDE2A7
accent
#EF39AF
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #804BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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