#804DCF#804DCF

#804DCF is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.5% C 0.192 H 297.7°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#804DCF
RGBrgb(128, 77, 207)
HSLhsl(264, 58%, 56%)
HSVhsv(264, 63%, 81%)
CMYKcmyk(38.2%, 62.8%, 0%, 18.8%)
CIE-LABlab(44.80, 48.66, -59.68)
CIE-LCHlch(44.80, 77.00, 309.19°)
OKLaboklab(54.51% 0.0893 -0.1699)
OKLCHoklch(54.51% 0.192 297.7)
XYZxyz(22.8156, 14.4016, 60.5971)
Luminance0.1440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DCF #9CCF4D
analogous
#4D5BCF #804DCF #C14DCF
triadic
#804DCF #CF804D #4DCF80
tetradic
#804DCF #CF4D5B #9CCF4D #4DCFC1
square
#804DCF #CF4D5B #9CCF4D #4DCFC1
split-complementary
#804DCF #CFC14D #5BCF4D
monochromatic
#47227F #622FAF #804DCF #A27DDC #C5ADE9

Accessibility & contrast

On white

5.41
#804DCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#804DCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DCF
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DCF#FFFFFF#000000##FFFFFF
##804DCF1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD3
Deuteranopia (green-blind)
#0369CC
Tritanopia (blue-blind)
#6D6A87
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #804dcf;
/* rgb */ color: rgb(128, 77, 207);
/* oklch */ color: oklch(54.5% 0.192 297.7);
Tailwind
colors: {
  custom: {
    50: '#aa81de',
    500: '#804dcf',
    950: '#000000',
  },
}
SCSS
$custom: #804dcf;
$custom-light: #aa81de;
$custom-dark: #000000;
JSON
{
  "hex": "#804dcf",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 207
  },
  "hsl": {
    "h": 263.538,
    "s": 57.522,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54514,
    "c": 0.19196,
    "h": 297.7
  },
  "luminance": 0.14402
}

Semantic roles & 50–950 ramp

primary
#804DCF
secondary
#C2D7A1
accent
#E147A4
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #804DCF

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

Preview Lab → · Contrast checker → · Palette generator →

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