#7D229C#7D229C

#7D229C is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.191 H 315.6°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#7D229C
RGBrgb(125, 34, 156)
HSLhsl(285, 64%, 37%)
HSVhsv(285, 78%, 61%)
CMYKcmyk(19.9%, 78.2%, 0%, 38.8%)
CIE-LABlab(33.78, 55.79, -47.39)
CIE-LCHlch(33.78, 73.20, 319.66°)
OKLaboklab(45.41% 0.1367 -0.1337)
OKLCHoklch(45.41% 0.191 315.6)
XYZxyz(15.0293, 7.9049, 32.1802)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D229C #419C22
analogous
#40229C #7D229C #9C227E
triadic
#7D229C #9C7D22 #229C7D
tetradic
#7D229C #9C4022 #419C22 #227E9C
square
#7D229C #9C4022 #419C22 #227E9C
split-complementary
#7D229C #7E9C22 #229C40
monochromatic
#2C0C38 #55176A #7D229C #A52DCE #BB5DDC

Accessibility & contrast

On white

8.14
#7D229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7D229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D229C
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D229C#FFFFFF#000000##FFFFFF
##7D229C1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9F
Deuteranopia (green-blind)
#1E5299
Tritanopia (blue-blind)
#7B3E5E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d229c;
/* rgb */ color: rgb(125, 34, 156);
/* oklch */ color: oklch(45.4% 0.191 315.6);
Tailwind
colors: {
  custom: {
    50: '#a768ba',
    500: '#7d229c',
    950: '#000000',
  },
}
SCSS
$custom: #7d229c;
$custom-light: #a768ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7d229c",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 284.754,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45412,
    "c": 0.1912,
    "h": 315.6
  },
  "luminance": 0.07904
}

Semantic roles & 50–950 ramp

primary
#7D229C
secondary
#74C05A
accent
#E7416B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D229C

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

Preview Lab → · Contrast checker → · Palette generator →

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