#804297#804297

#804297 is a mid, vivid purple. Relative luminance 0.107; OKLCH L 49.2% C 0.144 H 316.1°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#804297
RGBrgb(128, 66, 151)
HSLhsl(284, 39%, 43%)
HSVhsv(284, 56%, 59%)
CMYKcmyk(15.2%, 56.3%, 0%, 40.8%)
CIE-LABlab(39.11, 41.03, -35.82)
CIE-LCHlch(39.11, 54.47, 318.88°)
OKLaboklab(49.24% 0.1037 -0.0999)
OKLCHoklch(49.24% 0.144 316.1)
XYZxyz(16.4354, 10.7205, 30.4757)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804297 #599742
analogous
#564297 #804297 #974283
triadic
#804297 #978042 #429780
tetradic
#804297 #975642 #599742 #428397
square
#804297 #975642 #599742 #428397
split-complementary
#804297 #839742 #429756
monochromatic
#381D42 #5C2F6C #804297 #A05EB8 #B988CB

Accessibility & contrast

On white

6.68
#804297 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#804297 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804297
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804297#FFFFFF#000000##FFFFFF
##8042971.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E589A
Deuteranopia (green-blind)
#435E95
Tritanopia (blue-blind)
#7F5066
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #804297;
/* rgb */ color: rgb(128, 66, 151);
/* oklch */ color: oklch(49.2% 0.144 316.1);
Tailwind
colors: {
  custom: {
    50: '#a779b6',
    500: '#804297',
    950: '#000000',
  },
}
SCSS
$custom: #804297;
$custom-light: #a779b6;
$custom-dark: #000000;
JSON
{
  "hex": "#804297",
  "rgb": {
    "r": 128,
    "g": 66,
    "b": 151
  },
  "hsl": {
    "h": 283.765,
    "s": 39.171,
    "l": 42.549
  },
  "oklch": {
    "l": 0.49235,
    "c": 0.144,
    "h": 316.1
  },
  "luminance": 0.1072
}

Semantic roles & 50–950 ramp

primary
#804297
secondary
#8EB67F
accent
#CF5979
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#100911
muted
#7F7B80

Preview Lab

Preview with #804297

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

Preview Lab → · Contrast checker → · Palette generator →

#804297 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva