#7D227A#7D227A

#7D227A is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.2% C 0.162 H 329.4°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#7D227A
RGBrgb(125, 34, 122)
HSLhsl(302, 57%, 31%)
HSVhsv(302, 73%, 49%)
CMYKcmyk(0%, 72.8%, 2.4%, 51%)
CIE-LABlab(31.60, 49.38, -29.85)
CIE-LCHlch(31.60, 57.70, 328.84°)
OKLaboklab(43.16% 0.1391 -0.0824)
OKLCHoklch(43.16% 0.162 329.4)
XYZxyz(12.5422, 6.9101, 19.0818)
Luminance0.0691 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D227A #227D25
analogous
#52227D #7D227A #7D224C
triadic
#7D227A #7A7D22 #227A7D
tetradic
#7D227A #7D5222 #227D25 #224C7D
square
#7D227A #7D5222 #227D25 #224C7D
split-complementary
#7D227A #4C7D22 #227D52
monochromatic
#1D081C #4D154B #7D227A #AD2FA9 #CE4BCA

Accessibility & contrast

On white

8.82
#7D227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7D227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D227A
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D227A#FFFFFF#000000##FFFFFF
##7D227A1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16437C
Deuteranopia (green-blind)
#3C4F78
Tritanopia (blue-blind)
#822E4B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7d227a;
/* rgb */ color: rgb(125, 34, 122);
/* oklch */ color: oklch(43.2% 0.162 329.4);
Tailwind
colors: {
  custom: {
    50: '#a667a1',
    500: '#7d227a',
    950: '#000000',
  },
}
SCSS
$custom: #7d227a;
$custom-light: #a667a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d227a",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 301.978,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.4316,
    "c": 0.16172,
    "h": 329.4
  },
  "luminance": 0.06909
}

Semantic roles & 50–950 ramp

primary
#7D227A
secondary
#4BB04E
accent
#E04C47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7D227A

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

Preview Lab → · Contrast checker → · Palette generator →

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