#7D229A#7D229A

#7D229A is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.3% C 0.189 H 316.3°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#7D229A
RGBrgb(125, 34, 154)
HSLhsl(286, 64%, 37%)
HSVhsv(286, 78%, 60%)
CMYKcmyk(18.8%, 77.9%, 0%, 39.6%)
CIE-LABlab(33.64, 55.39, -46.40)
CIE-LCHlch(33.64, 72.26, 320.05°)
OKLaboklab(45.27% 0.137 -0.1308)
OKLCHoklch(45.27% 0.189 316.3)
XYZxyz(14.8613, 7.8377, 31.2956)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D229A #3F9A22
analogous
#41229A #7D229A #9A227B
triadic
#7D229A #9A7D22 #229A7D
tetradic
#7D229A #9A4122 #3F9A22 #227B9A
square
#7D229A #9A4122 #3F9A22 #227B9A
split-complementary
#7D229A #7B9A22 #229A41
monochromatic
#2C0C36 #541768 #7D229A #A62DCC #BC5BDB

Accessibility & contrast

On white

8.18
#7D229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7D229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D229A
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D229A#FFFFFF#000000##FFFFFF
##7D229A1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9D
Deuteranopia (green-blind)
#215297
Tritanopia (blue-blind)
#7B3D5D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d229a;
/* rgb */ color: rgb(125, 34, 154);
/* oklch */ color: oklch(45.3% 0.189 316.3);
Tailwind
colors: {
  custom: {
    50: '#a768b8',
    500: '#7d229a',
    950: '#000000',
  },
}
SCSS
$custom: #7d229a;
$custom-light: #a768b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7d229a",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 285.5,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45267,
    "c": 0.18941,
    "h": 316.3
  },
  "luminance": 0.07837
}

Semantic roles & 50–950 ramp

primary
#7D229A
secondary
#71BF58
accent
#E74169
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D229A

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

Preview Lab → · Contrast checker → · Palette generator →

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