#804FCE#804FCE

#804FCE is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.7% C 0.188 H 297.6°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#804FCE
RGBrgb(128, 79, 206)
HSLhsl(263, 56%, 56%)
HSVhsv(263, 62%, 81%)
CMYKcmyk(37.9%, 61.7%, 0%, 19.2%)
CIE-LABlab(45.13, 47.33, -58.57)
CIE-LCHlch(45.13, 75.30, 308.94°)
OKLaboklab(54.73% 0.0871 -0.1666)
OKLCHoklch(54.73% 0.188 297.6)
XYZxyz(22.8358, 14.6370, 60.0027)
Luminance0.1464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FCE #9DCE4F
analogous
#4F5DCE #804FCE #BF4FCE
triadic
#804FCE #CE804F #4FCE80
tetradic
#804FCE #CE4F5D #9DCE4F #4FCEBF
square
#804FCE #CE4F5D #9DCE4F #4FCEBF
split-complementary
#804FCE #CEBF4F #5DCE4F
monochromatic
#47237F #6131AF #804FCE #A37FDB #C5AFE9

Accessibility & contrast

On white

5.35
#804FCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#804FCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FCE
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FCE#FFFFFF#000000##FFFFFF
##804FCE1.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD2
Deuteranopia (green-blind)
#1269CB
Tritanopia (blue-blind)
#6E6B87
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #804fce;
/* rgb */ color: rgb(128, 79, 206);
/* oklch */ color: oklch(54.7% 0.188 297.6);
Tailwind
colors: {
  custom: {
    50: '#aa83de',
    500: '#804fce',
    950: '#000000',
  },
}
SCSS
$custom: #804fce;
$custom-light: #aa83de;
$custom-dark: #000000;
JSON
{
  "hex": "#804fce",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 206
  },
  "hsl": {
    "h": 263.15,
    "s": 56.444,
    "l": 55.882
  },
  "oklch": {
    "l": 0.54731,
    "c": 0.18804,
    "h": 297.6
  },
  "luminance": 0.14637
}

Semantic roles & 50–950 ramp

primary
#804FCE
secondary
#C2D7A2
accent
#E048A5
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #804FCE

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

Preview Lab → · Contrast checker → · Palette generator →

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