#7D2277#7D2277

#7D2277 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.0% C 0.159 H 330.8°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#7D2277
RGBrgb(125, 34, 119)
HSLhsl(304, 57%, 31%)
HSVhsv(304, 73%, 49%)
CMYKcmyk(0%, 72.8%, 4.8%, 51%)
CIE-LABlab(31.43, 48.86, -28.22)
CIE-LCHlch(31.43, 56.43, 329.99°)
OKLaboklab(42.98% 0.139 -0.0777)
OKLCHoklch(42.98% 0.159 330.8)
XYZxyz(12.3592, 6.8369, 18.1179)
Luminance0.0684 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2277 #227D28
analogous
#55227D #7D2277 #7D2249
triadic
#7D2277 #777D22 #22777D
tetradic
#7D2277 #7D5522 #227D28 #22497D
square
#7D2277 #7D5522 #227D28 #22497D
split-complementary
#7D2277 #497D22 #227D55
monochromatic
#1D081B #4D1549 #7D2277 #AD2FA5 #CE4BC5

Accessibility & contrast

On white

8.87
#7D2277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7D2277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2277
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2277#FFFFFF#000000##FFFFFF
##7D22771.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4279
Deuteranopia (green-blind)
#3D4E75
Tritanopia (blue-blind)
#822D4A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7d2277;
/* rgb */ color: rgb(125, 34, 119);
/* oklch */ color: oklch(43.0% 0.159 330.8);
Tailwind
colors: {
  custom: {
    50: '#a6669e',
    500: '#7d2277',
    950: '#000000',
  },
}
SCSS
$custom: #7d2277;
$custom-light: #a6669e;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2277",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 303.956,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42984,
    "c": 0.15927,
    "h": 330.8
  },
  "luminance": 0.06836
}

Semantic roles & 50–950 ramp

primary
#7D2277
secondary
#4BB052
accent
#E05147
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D2277

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

Preview Lab → · Contrast checker → · Palette generator →

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