#7A276F#7A276F

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

Color values

HEX#7A276F
RGBrgb(122, 39, 111)
HSLhsl(308, 52%, 32%)
HSVhsv(308, 68%, 48%)
CMYKcmyk(0%, 68%, 9%, 52.2%)
CIE-LABlab(31.20, 44.71, -23.55)
CIE-LCHlch(31.20, 50.53, 332.22°)
OKLaboklab(42.58% 0.1291 -0.0644)
OKLCHoklch(42.58% 0.144 333.5)
XYZxyz(11.6209, 6.7372, 15.7242)
Luminance0.0674 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A276F #277A32
analogous
#5C277A #7A276F #7A2746
triadic
#7A276F #6F7A27 #276F7A
tetradic
#7A276F #7A5C27 #277A32 #27467A
square
#7A276F #7A5C27 #277A32 #27467A
split-complementary
#7A276F #467A27 #277A5C
monochromatic
#1D091B #4C1845 #7A276F #A83699 #C853B9

Accessibility & contrast

On white

8.95
#7A276F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7A276F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A276F
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A276F#FFFFFF#000000##FFFFFF
##7A276F1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254271
Deuteranopia (green-blind)
#414E6D
Tritanopia (blue-blind)
#802E47
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7a276f;
/* rgb */ color: rgb(122, 39, 111);
/* oklch */ color: oklch(42.6% 0.144 333.5);
Tailwind
colors: {
  custom: {
    50: '#a36898',
    500: '#7a276f',
    950: '#000000',
  },
}
SCSS
$custom: #7a276f;
$custom-light: #a36898;
$custom-dark: #000000;
JSON
{
  "hex": "#7a276f",
  "rgb": {
    "r": 122,
    "g": 39,
    "b": 111
  },
  "hsl": {
    "h": 307.952,
    "s": 51.553,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42577,
    "c": 0.14428,
    "h": 333.5
  },
  "luminance": 0.06736
}

Semantic roles & 50–950 ramp

primary
#7A276F
secondary
#51AC5D
accent
#DB604D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060D
muted
#7F7A7E

Preview Lab

Preview with #7A276F

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

Preview Lab → · Contrast checker → · Palette generator →

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