#772271#772271

#772271 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 41.7% C 0.151 H 330.9°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#772271
RGBrgb(119, 34, 113)
HSLhsl(304, 56%, 30%)
HSVhsv(304, 71%, 47%)
CMYKcmyk(0%, 71.4%, 5%, 53.3%)
CIE-LABlab(30.06, 46.32, -26.66)
CIE-LCHlch(30.06, 53.44, 330.08°)
OKLaboklab(41.68% 0.1319 -0.0734)
OKLCHoklch(41.68% 0.151 330.9)
XYZxyz(11.1604, 6.2591, 16.2399)
Luminance0.0626 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772271 #227728
analogous
#522277 #772271 #772247
triadic
#772271 #717722 #227177
tetradic
#772271 #775222 #227728 #224777
square
#772271 #775222 #227728 #224777
split-complementary
#772271 #477722 #227752
monochromatic
#180717 #471444 #772271 #A7309E #CB49C2

Accessibility & contrast

On white

9.33
#772271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#772271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772271
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772271#FFFFFF#000000##FFFFFF
##7722711.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3F73
Deuteranopia (green-blind)
#3B4B6F
Tritanopia (blue-blind)
#7C2C46
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #772271;
/* rgb */ color: rgb(119, 34, 113);
/* oklch */ color: oklch(41.7% 0.151 330.9);
Tailwind
colors: {
  custom: {
    50: '#a1659a',
    500: '#772271',
    950: '#000000',
  },
}
SCSS
$custom: #772271;
$custom-light: #a1659a;
$custom-dark: #000000;
JSON
{
  "hex": "#772271",
  "rgb": {
    "r": 119,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 304.235,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.41683,
    "c": 0.15089,
    "h": 330.9
  },
  "luminance": 0.06258
}

Semantic roles & 50–950 ramp

primary
#772271
secondary
#4BAA52
accent
#DF5449
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #772271

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

Preview Lab → · Contrast checker → · Palette generator →

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