#7A277D#7A277D

#7A277D is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.4% C 0.156 H 326.4°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#7A277D
RGBrgb(122, 39, 125)
HSLhsl(298, 52%, 32%)
HSVhsv(298, 69%, 49%)
CMYKcmyk(2.4%, 68.8%, 0%, 51%)
CIE-LABlab(31.97, 47.20, -31.19)
CIE-LCHlch(31.97, 56.58, 326.54°)
OKLaboklab(43.38% 0.1301 -0.0864)
OKLCHoklch(43.38% 0.156 326.4)
XYZxyz(12.4530, 7.0701, 20.1068)
Luminance0.0707 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A277D #2A7D27
analogous
#4F277D #7A277D #7D2755
triadic
#7A277D #7D7A27 #277D7A
tetradic
#7A277D #7D4F27 #2A7D27 #27557D
square
#7A277D #7D4F27 #2A7D27 #27557D
split-complementary
#7A277D #557D27 #277D4F
monochromatic
#1F0A20 #4C184E #7A277D #A836AC #C655CA

Accessibility & contrast

On white

8.70
#7A277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7A277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A277D
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A277D#FFFFFF#000000##FFFFFF
##7A277D1.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18447F
Deuteranopia (green-blind)
#3A4F7B
Tritanopia (blue-blind)
#7D344F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7a277d;
/* rgb */ color: rgb(122, 39, 125);
/* oklch */ color: oklch(43.4% 0.156 326.4);
Tailwind
colors: {
  custom: {
    50: '#a369a3',
    500: '#7a277d',
    950: '#000000',
  },
}
SCSS
$custom: #7a277d;
$custom-light: #a369a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a277d",
  "rgb": {
    "r": 122,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 297.907,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43379,
    "c": 0.15624,
    "h": 326.4
  },
  "luminance": 0.07069
}

Semantic roles & 50–950 ramp

primary
#7A277D
secondary
#55AF51
accent
#DC4C51
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F070F
muted
#7F7A7F

Preview Lab

Preview with #7A277D

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

Preview Lab → · Contrast checker → · Palette generator →

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