#782271#782271

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

Color values

HEX#782271
RGBrgb(120, 34, 113)
HSLhsl(305, 56%, 30%)
HSVhsv(305, 72%, 47%)
CMYKcmyk(0%, 71.7%, 5.8%, 52.9%)
CIE-LABlab(30.23, 46.57, -26.37)
CIE-LCHlch(30.23, 53.52, 330.48°)
OKLaboklab(41.84% 0.133 -0.0725)
OKLCHoklch(41.84% 0.151 331.4)
XYZxyz(11.2984, 6.3303, 16.2464)
Luminance0.0633 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782271 #227829
analogous
#542278 #782271 #782246
triadic
#782271 #717822 #227178
tetradic
#782271 #785422 #227829 #224678
square
#782271 #785422 #227829 #224678
split-complementary
#782271 #467822 #227854
monochromatic
#190717 #481444 #782271 #A8309E #CB49C1

Accessibility & contrast

On white

9.27
#782271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#782271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782271
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782271#FFFFFF#000000##FFFFFF
##7822711.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3F73
Deuteranopia (green-blind)
#3C4B6F
Tritanopia (blue-blind)
#7D2B47
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #782271;
/* rgb */ color: rgb(120, 34, 113);
/* oklch */ color: oklch(41.8% 0.151 331.4);
Tailwind
colors: {
  custom: {
    50: '#a2669a',
    500: '#782271',
    950: '#000000',
  },
}
SCSS
$custom: #782271;
$custom-light: #a2669a;
$custom-dark: #000000;
JSON
{
  "hex": "#782271",
  "rgb": {
    "r": 120,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 304.884,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.41842,
    "c": 0.15148,
    "h": 331.4
  },
  "luminance": 0.06329
}

Semantic roles & 50–950 ramp

primary
#782271
secondary
#4BAB53
accent
#DF5549
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #782271

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

Preview Lab → · Contrast checker → · Palette generator →

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