#7A2671#7A2671

#7A2671 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.6% C 0.147 H 332.4°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#7A2671
RGBrgb(122, 38, 113)
HSLhsl(306, 53%, 31%)
HSVhsv(306, 69%, 48%)
CMYKcmyk(0%, 68.9%, 7.4%, 52.2%)
CIE-LABlab(31.15, 45.47, -24.90)
CIE-LCHlch(31.15, 51.84, 331.30°)
OKLaboklab(42.58% 0.1306 -0.0682)
OKLCHoklch(42.58% 0.147 332.4)
XYZxyz(11.6998, 6.7170, 16.2999)
Luminance0.0672 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2671 #267A2F
analogous
#59267A #7A2671 #7A2647
triadic
#7A2671 #717A26 #26717A
tetradic
#7A2671 #7A5926 #267A2F #26477A
square
#7A2671 #7A5926 #267A2F #26477A
split-complementary
#7A2671 #477A26 #267A59
monochromatic
#1D091B #4B1746 #7A2671 #A9359C #C951BC

Accessibility & contrast

On white

8.96
#7A2671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7A2671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2671
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2671#FFFFFF#000000##FFFFFF
##7A26711.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224273
Deuteranopia (green-blind)
#404E6F
Tritanopia (blue-blind)
#7F2E48
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7a2671;
/* rgb */ color: rgb(122, 38, 113);
/* oklch */ color: oklch(42.6% 0.147 332.4);
Tailwind
colors: {
  custom: {
    50: '#a3689a',
    500: '#7a2671',
    950: '#000000',
  },
}
SCSS
$custom: #7a2671;
$custom-light: #a3689a;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2671",
  "rgb": {
    "r": 122,
    "g": 38,
    "b": 113
  },
  "hsl": {
    "h": 306.429,
    "s": 52.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42577,
    "c": 0.14733,
    "h": 332.4
  },
  "luminance": 0.06716
}

Semantic roles & 50–950 ramp

primary
#7A2671
secondary
#50AC5A
accent
#DC5B4C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #7A2671

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

Preview Lab → · Contrast checker → · Palette generator →

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