#7A277B#7A277B

#7A277B is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.3% C 0.154 H 327.4°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#7A277B
RGBrgb(122, 39, 123)
HSLhsl(299, 52%, 32%)
HSVhsv(299, 68%, 48%)
CMYKcmyk(0.8%, 68.3%, 0%, 51.8%)
CIE-LABlab(31.85, 46.83, -30.12)
CIE-LCHlch(31.85, 55.68, 327.26°)
OKLaboklab(43.26% 0.1301 -0.0833)
OKLCHoklch(43.26% 0.154 327.4)
XYZxyz(12.3265, 7.0195, 19.4407)
Luminance0.0702 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A277B #287B27
analogous
#50277B #7A277B #7B2752
triadic
#7A277B #7B7A27 #277B7A
tetradic
#7A277B #7B5027 #287B27 #27527B
square
#7A277B #7B5027 #287B27 #27527B
split-complementary
#7A277B #527B27 #277B50
monochromatic
#1E0A1E #4C184D #7A277B #A836A9 #C754C9

Accessibility & contrast

On white

8.74
#7A277B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7A277B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A277B
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A277B#FFFFFF#000000##FFFFFF
##7A277B1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A447D
Deuteranopia (green-blind)
#3B4F79
Tritanopia (blue-blind)
#7E334D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7a277b;
/* rgb */ color: rgb(122, 39, 123);
/* oklch */ color: oklch(43.3% 0.154 327.4);
Tailwind
colors: {
  custom: {
    50: '#a369a1',
    500: '#7a277b',
    950: '#000000',
  },
}
SCSS
$custom: #7a277b;
$custom-light: #a369a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a277b",
  "rgb": {
    "r": 122,
    "g": 39,
    "b": 123
  },
  "hsl": {
    "h": 299.286,
    "s": 51.852,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43259,
    "c": 0.15447,
    "h": 327.4
  },
  "luminance": 0.07019
}

Semantic roles & 50–950 ramp

primary
#7A277B
secondary
#52AD51
accent
#DB4C4E
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F070F
muted
#7F7A7F

Preview Lab

Preview with #7A277B

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

Preview Lab → · Contrast checker → · Palette generator →

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