#7A1276#7A1276

#7A1276 is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.2% C 0.173 H 330.0°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#7A1276
RGBrgb(122, 18, 118)
HSLhsl(302, 74%, 27%)
HSVhsv(302, 85%, 48%)
CMYKcmyk(0%, 85.2%, 3.3%, 52.2%)
CIE-LABlab(29.11, 52.97, -31.31)
CIE-LCHlch(29.11, 61.53, 329.41°)
OKLaboklab(41.2% 0.15 -0.0866)
OKLCHoklch(41.2% 0.173 330)
XYZxyz(11.5123, 5.8791, 17.6645)
Luminance0.0588 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1276 #127A16
analogous
#4A127A #7A1276 #7A1242
triadic
#7A1276 #767A12 #12767A
tetradic
#7A1276 #7A4A12 #127A16 #12427A
square
#7A1276 #7A4A12 #127A16 #12427A
split-complementary
#7A1276 #427A12 #127A4A
monochromatic
#1B041A #450A42 #7A1276 #AF1AAA #DF27D8

Accessibility & contrast

On white

9.65
#7A1276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#7A1276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1276
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1276#FFFFFF#000000##FFFFFF
##7A12761.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C79
Deuteranopia (green-blind)
#354974
Tritanopia (blue-blind)
#7F2345
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7a1276;
/* rgb */ color: rgb(122, 18, 118);
/* oklch */ color: oklch(41.2% 0.173 330.0);
Tailwind
colors: {
  custom: {
    50: '#a4609e',
    500: '#7a1276',
    950: '#000000',
  },
}
SCSS
$custom: #7a1276;
$custom-light: #a4609e;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1276",
  "rgb": {
    "r": 122,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 302.308,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.41199,
    "c": 0.17319,
    "h": 330
  },
  "luminance": 0.05878
}

Semantic roles & 50–950 ramp

primary
#7A1276
secondary
#38B03C
accent
#F13E37
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050E
muted
#7F7A7E

Preview Lab

Preview with #7A1276

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

Preview Lab → · Contrast checker → · Palette generator →

#7A1276 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva