#804FCF#804FCF

#804FCF is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.8% C 0.189 H 297.4°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#804FCF
RGBrgb(128, 79, 207)
HSLhsl(263, 57%, 56%)
HSVhsv(263, 62%, 81%)
CMYKcmyk(38.2%, 61.8%, 0%, 18.8%)
CIE-LABlab(45.20, 47.59, -59.03)
CIE-LCHlch(45.20, 75.83, 308.87°)
OKLaboklab(54.8% 0.0871 -0.168)
OKLCHoklch(54.8% 0.189 297.4)
XYZxyz(22.9577, 14.6858, 60.6445)
Luminance0.1469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FCF #9ECF4F
analogous
#4F5ECF #804FCF #C04FCF
triadic
#804FCF #CF804F #4FCF80
tetradic
#804FCF #CF4F5E #9ECF4F #4FCFC0
square
#804FCF #CF4F5E #9ECF4F #4FCFC0
split-complementary
#804FCF #CFC04F #5ECF4F
monochromatic
#472381 #6130B1 #804FCF #A37FDC #C5AFE9

Accessibility & contrast

On white

5.33
#804FCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#804FCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FCF
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FCF#FFFFFF#000000##FFFFFF
##804FCF1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD3
Deuteranopia (green-blind)
#0E69CC
Tritanopia (blue-blind)
#6D6B88
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #804fcf;
/* rgb */ color: rgb(128, 79, 207);
/* oklch */ color: oklch(54.8% 0.189 297.4);
Tailwind
colors: {
  custom: {
    50: '#aa83de',
    500: '#804fcf',
    950: '#000000',
  },
}
SCSS
$custom: #804fcf;
$custom-light: #aa83de;
$custom-dark: #000000;
JSON
{
  "hex": "#804fcf",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 207
  },
  "hsl": {
    "h": 262.969,
    "s": 57.143,
    "l": 56.078
  },
  "oklch": {
    "l": 0.54802,
    "c": 0.18923,
    "h": 297.4
  },
  "luminance": 0.14686
}

Semantic roles & 50–950 ramp

primary
#804FCF
secondary
#C3D7A2
accent
#E047A6
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #804FCF

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

Preview Lab → · Contrast checker → · Palette generator →

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