#7D226E#7D226E

#7D226E is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.5% C 0.152 H 335.3°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#7D226E
RGBrgb(125, 34, 110)
HSLhsl(310, 57%, 31%)
HSVhsv(310, 73%, 49%)
CMYKcmyk(0%, 72.8%, 12%, 51%)
CIE-LABlab(30.95, 47.37, -23.26)
CIE-LCHlch(30.95, 52.77, 333.84°)
OKLaboklab(42.48% 0.1383 -0.0635)
OKLCHoklch(42.48% 0.152 335.3)
XYZxyz(11.8441, 6.6308, 15.4049)
Luminance0.0663 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D226E #227D31
analogous
#5E227D #7D226E #7D2240
triadic
#7D226E #6E7D22 #226E7D
tetradic
#7D226E #7D5E22 #227D31 #22407D
square
#7D226E #7D5E22 #227D31 #22407D
split-complementary
#7D226E #407D22 #227D5E
monochromatic
#1D0819 #4D1544 #7D226E #AD2F98 #CE4BB9

Accessibility & contrast

On white

9.03
#7D226E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7D226E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D226E
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D226E#FFFFFF#000000##FFFFFF
##7D226E1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224070
Deuteranopia (green-blind)
#414E6C
Tritanopia (blue-blind)
#832945
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7d226e;
/* rgb */ color: rgb(125, 34, 110);
/* oklch */ color: oklch(42.5% 0.152 335.3);
Tailwind
colors: {
  custom: {
    50: '#a66698',
    500: '#7d226e',
    950: '#000000',
  },
}
SCSS
$custom: #7d226e;
$custom-light: #a66698;
$custom-dark: #000000;
JSON
{
  "hex": "#7d226e",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 110
  },
  "hsl": {
    "h": 309.89,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.4248,
    "c": 0.15215,
    "h": 335.3
  },
  "luminance": 0.0663
}

Semantic roles & 50–950 ramp

primary
#7D226E
secondary
#4BB05C
accent
#E06147
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7D226E

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

Preview Lab → · Contrast checker → · Palette generator →

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