#804FBB#804FBB

#804FBB is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.4% C 0.165 H 302.0°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#804FBB
RGBrgb(128, 79, 187)
HSLhsl(267, 44%, 52%)
HSVhsv(267, 58%, 73%)
CMYKcmyk(31.6%, 57.8%, 0%, 26.7%)
CIE-LABlab(43.90, 42.47, -49.54)
CIE-LCHlch(43.90, 65.25, 310.60°)
OKLaboklab(53.44% 0.0877 -0.1401)
OKLCHoklch(53.44% 0.165 302)
XYZxyz(20.6656, 13.7690, 48.5730)
Luminance0.1377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FBB #8ABB4F
analogous
#4F54BB #804FBB #B64FBB
triadic
#804FBB #BB804F #4FBB80
tetradic
#804FBB #BB4F54 #8ABB4F #4FBBB6
square
#804FBB #BB4F54 #8ABB4F #4FBBB6
split-complementary
#804FBB #BBB64F #54BB4F
monochromatic
#452868 #623994 #804FBB #A07BCC #C0A7DD

Accessibility & contrast

On white

5.59
#804FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#804FBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FBB
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FBB#FFFFFF#000000##FFFFFF
##804FBB1.005.593.755.59
#FFFFFF5.591.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F67BF
Deuteranopia (green-blind)
#3367B9
Tritanopia (blue-blind)
#74657D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #804fbb;
/* rgb */ color: rgb(128, 79, 187);
/* oklch */ color: oklch(53.4% 0.165 302.0);
Tailwind
colors: {
  custom: {
    50: '#a882d0',
    500: '#804fbb',
    950: '#000000',
  },
}
SCSS
$custom: #804fbb;
$custom-light: #a882d0;
$custom-dark: #000000;
JSON
{
  "hex": "#804fbb",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 187
  },
  "hsl": {
    "h": 267.222,
    "s": 44.262,
    "l": 52.157
  },
  "oklch": {
    "l": 0.53437,
    "c": 0.16528,
    "h": 302
  },
  "luminance": 0.13769
}

Semantic roles & 50–950 ramp

primary
#804FBB
secondary
#B5CA9B
accent
#D4549A
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #804FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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