#7D227D#7D227D

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

Color values

HEX#7D227D
RGBrgb(125, 34, 125)
HSLhsl(300, 57%, 31%)
HSVhsv(300, 73%, 49%)
CMYKcmyk(0%, 72.8%, 0%, 51%)
CIE-LABlab(31.77, 49.90, -31.46)
CIE-LCHlch(31.77, 58.99, 327.77°)
OKLaboklab(43.34% 0.1392 -0.0871)
OKLCHoklch(43.34% 0.164 328)
XYZxyz(12.7310, 6.9856, 20.0759)
Luminance0.0698 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D227D #227D22
analogous
#4F227D #7D227D #7D224F
triadic
#7D227D #7D7D22 #227D7D
tetradic
#7D227D #7D4F22 #227D22 #224F7D
square
#7D227D #7D4F22 #227D22 #224F7D
split-complementary
#7D227D #4F7D22 #227D4F
monochromatic
#1D081D #4D154D #7D227D #AD2FAD #CE4BCE

Accessibility & contrast

On white

8.76
#7D227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D227D
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D227D#FFFFFF#000000##FFFFFF
##7D227D1.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124380
Deuteranopia (green-blind)
#3A4F7B
Tritanopia (blue-blind)
#81304D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7d227d;
/* rgb */ color: rgb(125, 34, 125);
/* oklch */ color: oklch(43.3% 0.164 328.0);
Tailwind
colors: {
  custom: {
    50: '#a667a3',
    500: '#7d227d',
    950: '#000000',
  },
}
SCSS
$custom: #7d227d;
$custom-light: #a667a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d227d",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 300,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.4334,
    "c": 0.16421,
    "h": 328
  },
  "luminance": 0.06985
}

Semantic roles & 50–950 ramp

primary
#7D227D
secondary
#4BB04B
accent
#E04747
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D227D

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

Preview Lab → · Contrast checker → · Palette generator →

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