#7D228C#7D228C

#7D228C is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.3% C 0.177 H 321.6°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#7D228C
RGBrgb(125, 34, 140)
HSLhsl(292, 61%, 34%)
HSVhsv(292, 76%, 55%)
CMYKcmyk(10.7%, 75.7%, 0%, 45.1%)
CIE-LABlab(32.70, 52.66, -39.33)
CIE-LCHlch(32.70, 65.73, 323.24°)
OKLaboklab(44.3% 0.1387 -0.1101)
OKLCHoklch(44.3% 0.177 321.6)
XYZxyz(13.7626, 7.3982, 25.5089)
Luminance0.0740 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D228C #318C22
analogous
#48228C #7D228C #8C2266
triadic
#7D228C #8C7D22 #228C7D
tetradic
#7D228C #8C4822 #318C22 #22668C
square
#7D228C #8C4822 #318C22 #22668C
split-complementary
#7D228C #668C22 #228C48
monochromatic
#250A2A #51165B #7D228C #A92EBD #C353D5

Accessibility & contrast

On white

8.47
#7D228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7D228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D228C
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D228C#FFFFFF#000000##FFFFFF
##7D228C1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#30508A
Tritanopia (blue-blind)
#7E3655
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7d228c;
/* rgb */ color: rgb(125, 34, 140);
/* oklch */ color: oklch(44.3% 0.177 321.6);
Tailwind
colors: {
  custom: {
    50: '#a667ae',
    500: '#7d228c',
    950: '#000000',
  },
}
SCSS
$custom: #7d228c;
$custom-light: #a667ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7d228c",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 291.509,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44296,
    "c": 0.17704,
    "h": 321.6
  },
  "luminance": 0.07397
}

Semantic roles & 50–950 ramp

primary
#7D228C
secondary
#60B951
accent
#E4445A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D228C

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

Preview Lab → · Contrast checker → · Palette generator →

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