#7A2277#7A2277

#7A2277 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.5% C 0.158 H 329.4°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#7A2277
RGBrgb(122, 34, 119)
HSLhsl(302, 56%, 31%)
HSVhsv(302, 72%, 48%)
CMYKcmyk(0%, 72.1%, 2.5%, 52.2%)
CIE-LABlab(30.91, 48.12, -29.08)
CIE-LCHlch(30.91, 56.22, 328.85°)
OKLaboklab(42.51% 0.1356 -0.0803)
OKLCHoklch(42.51% 0.158 329.4)
XYZxyz(11.9277, 6.6144, 18.0977)
Luminance0.0661 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2277 #227A25
analogous
#51227A #7A2277 #7A224B
triadic
#7A2277 #777A22 #22777A
tetradic
#7A2277 #7A5122 #227A25 #224B7A
square
#7A2277 #7A5122 #227A25 #224B7A
split-complementary
#7A2277 #4B7A22 #227A51
monochromatic
#1A071A #4A1548 #7A2277 #AA2FA6 #CD4AC8

Accessibility & contrast

On white

9.04
#7A2277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7A2277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2277
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2277#FFFFFF#000000##FFFFFF
##7A22771.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174179
Deuteranopia (green-blind)
#3B4D75
Tritanopia (blue-blind)
#7E2E4A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7a2277;
/* rgb */ color: rgb(122, 34, 119);
/* oklch */ color: oklch(42.5% 0.158 329.4);
Tailwind
colors: {
  custom: {
    50: '#a3669e',
    500: '#7a2277',
    950: '#000000',
  },
}
SCSS
$custom: #7a2277;
$custom-light: #a3669e;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2277",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 302.045,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42509,
    "c": 0.15759,
    "h": 329.4
  },
  "luminance": 0.06614
}

Semantic roles & 50–950 ramp

primary
#7A2277
secondary
#4BAD4E
accent
#E04D48
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #7A2277

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

Preview Lab → · Contrast checker → · Palette generator →

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