#7D229F#7D229F

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

Color values

HEX#7D229F
RGBrgb(125, 34, 159)
HSLhsl(284, 65%, 38%)
HSVhsv(284, 79%, 62%)
CMYKcmyk(21.4%, 78.6%, 0%, 37.6%)
CIE-LABlab(34.00, 56.40, -48.86)
CIE-LCHlch(34.00, 74.62, 319.10°)
OKLaboklab(45.63% 0.1362 -0.138)
OKLCHoklch(45.63% 0.194 314.6)
XYZxyz(15.2864, 8.0078, 33.5346)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D229F #449F22
analogous
#3E229F #7D229F #9F2282
triadic
#7D229F #9F7D22 #229F7D
tetradic
#7D229F #9F3E22 #449F22 #22829F
square
#7D229F #9F3E22 #449F22 #22829F
split-complementary
#7D229F #829F22 #229F3E
monochromatic
#2E0C3A #55176D #7D229F #A52DD1 #BA5FDD

Accessibility & contrast

On white

8.07
#7D229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7D229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D229F
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D229F#FFFFFF#000000##FFFFFF
##7D229F1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d229f;
/* rgb */ color: rgb(125, 34, 159);
/* oklch */ color: oklch(45.6% 0.194 314.6);
Tailwind
colors: {
  custom: {
    50: '#a768bc',
    500: '#7d229f',
    950: '#000000',
  },
}
SCSS
$custom: #7d229f;
$custom-light: #a768bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7d229f",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 283.68,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45632,
    "c": 0.19389,
    "h": 314.6
  },
  "luminance": 0.08007
}

Semantic roles & 50–950 ramp

primary
#7D229F
secondary
#77C15B
accent
#E8406E
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D229F

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

Preview Lab → · Contrast checker → · Palette generator →

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