#7D228D#7D228D

#7D228D is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.4% C 0.178 H 321.2°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#7D228D
RGBrgb(125, 34, 141)
HSLhsl(291, 61%, 34%)
HSVhsv(291, 76%, 55%)
CMYKcmyk(11.3%, 75.9%, 0%, 44.7%)
CIE-LABlab(32.76, 52.85, -39.85)
CIE-LCHlch(32.76, 66.19, 322.98°)
OKLaboklab(44.36% 0.1386 -0.1116)
OKLCHoklch(44.36% 0.178 321.2)
XYZxyz(13.8366, 7.4279, 25.8990)
Luminance0.0743 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D228D #328D22
analogous
#48228D #7D228D #8D2268
triadic
#7D228D #8D7D22 #228D7D
tetradic
#7D228D #8D4822 #328D22 #22688D
square
#7D228D #8D4822 #328D22 #22688D
split-complementary
#7D228D #688D22 #228D48
monochromatic
#260A2A #51165C #7D228D #A92EBE #C254D6

Accessibility & contrast

On white

8.45
#7D228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7D228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D228D
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D228D#FFFFFF#000000##FFFFFF
##7D228D1.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#2F508B
Tritanopia (blue-blind)
#7E3756
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7d228d;
/* rgb */ color: rgb(125, 34, 141);
/* oklch */ color: oklch(44.4% 0.178 321.2);
Tailwind
colors: {
  custom: {
    50: '#a667af',
    500: '#7d228d',
    950: '#000000',
  },
}
SCSS
$custom: #7d228d;
$custom-light: #a667af;
$custom-dark: #000000;
JSON
{
  "hex": "#7d228d",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 291.028,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44363,
    "c": 0.17791,
    "h": 321.2
  },
  "luminance": 0.07427
}

Semantic roles & 50–950 ramp

primary
#7D228D
secondary
#61B951
accent
#E4445C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D228D

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

Preview Lab → · Contrast checker → · Palette generator →

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