#80339D#80339D

#80339D is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.6% C 0.173 H 315.4°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#80339D
RGBrgb(128, 51, 157)
HSLhsl(284, 51%, 41%)
HSVhsv(284, 68%, 62%)
CMYKcmyk(18.5%, 67.5%, 0%, 38.4%)
CIE-LABlab(36.73, 49.78, -43.23)
CIE-LCHlch(36.73, 65.93, 319.03°)
OKLaboklab(47.62% 0.123 -0.1215)
OKLCHoklch(47.62% 0.173 315.4)
XYZxyz(16.1707, 9.3917, 32.8527)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#80339D #509D33
analogous
#4B339D #80339D #9D3385
triadic
#80339D #9D8033 #339D80
tetradic
#80339D #9D4B33 #509D33 #33859D
square
#80339D #9D4B33 #509D33 #33859D
split-complementary
#80339D #859D33 #339D4B
monochromatic
#351541 #5A246F #80339D #A249C4 #BA77D3

Accessibility & contrast

On white

7.30
#80339D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#80339D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #80339D
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##80339D#FFFFFF#000000##FFFFFF
##80339D1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A0
Deuteranopia (green-blind)
#31589B
Tritanopia (blue-blind)
#7E4764
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #80339d;
/* rgb */ color: rgb(128, 51, 157);
/* oklch */ color: oklch(47.6% 0.173 315.4);
Tailwind
colors: {
  custom: {
    50: '#a871ba',
    500: '#80339d',
    950: '#000000',
  },
}
SCSS
$custom: #80339d;
$custom-light: #a871ba;
$custom-dark: #000000;
JSON
{
  "hex": "#80339d",
  "rgb": {
    "r": 128,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 283.585,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47623,
    "c": 0.17292,
    "h": 315.4
  },
  "luminance": 0.09391
}

Semantic roles & 50–950 ramp

primary
#80339D
secondary
#85BB70
accent
#DA4D74
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #80339D

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

Preview Lab → · Contrast checker → · Palette generator →

#80339D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva