#7D229D#7D229D

#7D229D is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.192 H 315.3°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#7D229D
RGBrgb(125, 34, 157)
HSLhsl(284, 64%, 37%)
HSVhsv(284, 78%, 62%)
CMYKcmyk(20.4%, 78.3%, 0%, 38.4%)
CIE-LABlab(33.86, 55.99, -47.88)
CIE-LCHlch(33.86, 73.67, 319.47°)
OKLaboklab(45.49% 0.1366 -0.1351)
OKLCHoklch(45.49% 0.192 315.3)
XYZxyz(15.1143, 7.9389, 32.6280)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D229D #429D22
analogous
#3F229D #7D229D #9D2280
triadic
#7D229D #9D7D22 #229D7D
tetradic
#7D229D #9D3F22 #429D22 #22809D
square
#7D229D #9D3F22 #429D22 #22809D
split-complementary
#7D229D #809D22 #229D3F
monochromatic
#2D0C38 #55176B #7D229D #A52DCF #BB5DDC

Accessibility & contrast

On white

8.12
#7D229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D229D
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D229D#FFFFFF#000000##FFFFFF
##7D229D1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA0
Deuteranopia (green-blind)
#1D529A
Tritanopia (blue-blind)
#7A3E5F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7d229d;
/* rgb */ color: rgb(125, 34, 157);
/* oklch */ color: oklch(45.5% 0.192 315.3);
Tailwind
colors: {
  custom: {
    50: '#a768bb',
    500: '#7d229d',
    950: '#000000',
  },
}
SCSS
$custom: #7d229d;
$custom-light: #a768bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d229d",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 284.39,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45485,
    "c": 0.1921,
    "h": 315.3
  },
  "luminance": 0.07938
}

Semantic roles & 50–950 ramp

primary
#7D229D
secondary
#75C15A
accent
#E7406C
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D229D

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

Preview Lab → · Contrast checker → · Palette generator →

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