#7D227C#7D227C

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

Color values

HEX#7D227C
RGBrgb(125, 34, 124)
HSLhsl(301, 57%, 31%)
HSVhsv(301, 73%, 49%)
CMYKcmyk(0%, 72.8%, 0.8%, 51%)
CIE-LABlab(31.72, 49.73, -30.93)
CIE-LCHlch(31.72, 58.56, 328.12°)
OKLaboklab(43.28% 0.1392 -0.0856)
OKLCHoklch(43.28% 0.163 328.4)
XYZxyz(12.6674, 6.9602, 19.7411)
Luminance0.0696 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D227C #227D23
analogous
#50227D #7D227C #7D224E
triadic
#7D227C #7C7D22 #227C7D
tetradic
#7D227C #7D5022 #227D23 #224E7D
square
#7D227C #7D5022 #227D23 #224E7D
split-complementary
#7D227C #4E7D22 #227D50
monochromatic
#1D081D #4D154C #7D227C #AD2FAC #CE4BCD

Accessibility & contrast

On white

8.78
#7D227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7D227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D227C
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D227C#FFFFFF#000000##FFFFFF
##7D227C1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14437F
Deuteranopia (green-blind)
#3B4F7A
Tritanopia (blue-blind)
#812F4D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7d227c;
/* rgb */ color: rgb(125, 34, 124);
/* oklch */ color: oklch(43.3% 0.163 328.4);
Tailwind
colors: {
  custom: {
    50: '#a667a2',
    500: '#7d227c',
    950: '#000000',
  },
}
SCSS
$custom: #7d227c;
$custom-light: #a667a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d227c",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 300.659,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.4328,
    "c": 0.16338,
    "h": 328.4
  },
  "luminance": 0.06959
}

Semantic roles & 50–950 ramp

primary
#7D227C
secondary
#4BB04C
accent
#E04947
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D227C

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

Preview Lab → · Contrast checker → · Palette generator →

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