#804BFA#804BFA

#804BFA is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.6% C 0.243 H 290.5°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#804BFA
RGBrgb(128, 75, 250)
HSLhsl(258, 95%, 64%)
HSVhsv(258, 70%, 98%)
CMYKcmyk(48.8%, 70%, 0%, 2%)
CIE-LABlab(47.65, 60.96, -79.40)
CIE-LCHlch(47.65, 100.10, 307.51°)
OKLaboklab(57.56% 0.0854 -0.2279)
OKLCHoklch(57.56% 0.243 290.5)
XYZxyz(28.6686, 16.5223, 92.1025)
Luminance0.1652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BFA #C5FA4B
analogous
#4B6DFA #804BFA #D74BFA
triadic
#804BFA #FA804B #4BFA80
tetradic
#804BFA #FA4B6D #C5FA4B #4BFAD7
square
#804BFA #FA4B6D #C5FA4B #4BFAD7
split-complementary
#804BFA #FAD74B #6DFA4B
monochromatic
#4005C5 #560FF8 #804BFA #AA87FC #D4C2FD

Accessibility & contrast

On white

4.88
#804BFA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#804BFA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BFA
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BFA#FFFFFF#000000##FFFFFF
##804BFA1.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074FF
Deuteranopia (green-blind)
#006DF7
Tritanopia (blue-blind)
#57799E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #804bfa;
/* rgb */ color: rgb(128, 75, 250);
/* oklch */ color: oklch(57.6% 0.243 290.5);
Tailwind
colors: {
  custom: {
    50: '#af81fd',
    500: '#804bfa',
    950: '#000000',
  },
}
SCSS
$custom: #804bfa;
$custom-light: #af81fd;
$custom-dark: #000000;
JSON
{
  "hex": "#804bfa",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 250
  },
  "hsl": {
    "h": 258.171,
    "s": 94.595,
    "l": 63.725
  },
  "oklch": {
    "l": 0.57564,
    "c": 0.24333,
    "h": 290.5
  },
  "luminance": 0.16523
}

Semantic roles & 50–950 ramp

primary
#804BFA
secondary
#DDEFB2
accent
#E600A0
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#120B18
muted
#817C86

Preview Lab

Preview with #804BFA

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

Preview Lab → · Contrast checker → · Palette generator →

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