#7D229E#7D229E

#7D229E is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.6% C 0.193 H 315.0°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#7D229E
RGBrgb(125, 34, 158)
HSLhsl(284, 65%, 38%)
HSVhsv(284, 78%, 62%)
CMYKcmyk(20.9%, 78.5%, 0%, 38%)
CIE-LABlab(33.93, 56.19, -48.37)
CIE-LCHlch(33.93, 74.14, 319.28°)
OKLaboklab(45.56% 0.1364 -0.1365)
OKLCHoklch(45.56% 0.193 315)
XYZxyz(15.2000, 7.9732, 33.0794)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D229E #439E22
analogous
#3F229E #7D229E #9E2281
triadic
#7D229E #9E7D22 #229E7D
tetradic
#7D229E #9E3F22 #439E22 #22819E
square
#7D229E #9E3F22 #439E22 #22819E
split-complementary
#7D229E #819E22 #229E3F
monochromatic
#2D0C39 #55176C #7D229E #A52DD0 #BB5EDC

Accessibility & contrast

On white

8.09
#7D229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7D229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D229E
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D229E#FFFFFF#000000##FFFFFF
##7D229E1.008.092.598.09
#FFFFFF8.091.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#1B529B
Tritanopia (blue-blind)
#7A3F60
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7d229e;
/* rgb */ color: rgb(125, 34, 158);
/* oklch */ color: oklch(45.6% 0.193 315.0);
Tailwind
colors: {
  custom: {
    50: '#a768bb',
    500: '#7d229e',
    950: '#000000',
  },
}
SCSS
$custom: #7d229e;
$custom-light: #a768bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d229e",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 284.032,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45558,
    "c": 0.19299,
    "h": 315
  },
  "luminance": 0.07973
}

Semantic roles & 50–950 ramp

primary
#7D229E
secondary
#76C15B
accent
#E8406D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D229E

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

Preview Lab → · Contrast checker → · Palette generator →

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