#804FBC#804FBC

#804FBC is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.5% C 0.166 H 301.8°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#804FBC
RGBrgb(128, 79, 188)
HSLhsl(267, 45%, 52%)
HSVhsv(267, 58%, 74%)
CMYKcmyk(31.9%, 58%, 0%, 26.3%)
CIE-LABlab(43.96, 42.72, -50.03)
CIE-LCHlch(43.96, 65.79, 310.50°)
OKLaboklab(53.5% 0.0877 -0.1415)
OKLCHoklch(53.5% 0.166 301.8)
XYZxyz(20.7731, 13.8119, 49.1388)
Luminance0.1381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FBC #8BBC4F
analogous
#4F55BC #804FBC #B64FBC
triadic
#804FBC #BC804F #4FBC80
tetradic
#804FBC #BC4F55 #8BBC4F #4FBCB6
square
#804FBC #BC4F55 #8BBC4F #4FBCB6
split-complementary
#804FBC #BCB64F #55BC4F
monochromatic
#452869 #623995 #804FBC #A07BCD #C0A8DE

Accessibility & contrast

On white

5.58
#804FBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#804FBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FBC
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FBC#FFFFFF#000000##FFFFFF
##804FBC1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D67C0
Deuteranopia (green-blind)
#3267B9
Tritanopia (blue-blind)
#74657E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #804fbc;
/* rgb */ color: rgb(128, 79, 188);
/* oklch */ color: oklch(53.5% 0.166 301.8);
Tailwind
colors: {
  custom: {
    50: '#a882d1',
    500: '#804fbc',
    950: '#000000',
  },
}
SCSS
$custom: #804fbc;
$custom-light: #a882d1;
$custom-dark: #000000;
JSON
{
  "hex": "#804fbc",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 188
  },
  "hsl": {
    "h": 266.972,
    "s": 44.856,
    "l": 52.353
  },
  "oklch": {
    "l": 0.53503,
    "c": 0.16649,
    "h": 301.8
  },
  "luminance": 0.13812
}

Semantic roles & 50–950 ramp

primary
#804FBC
secondary
#B6CB9C
accent
#D5539A
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #804FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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