#7D226F#7D226F

#7D226F is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.5% C 0.153 H 334.8°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#7D226F
RGBrgb(125, 34, 111)
HSLhsl(309, 57%, 31%)
HSVhsv(309, 73%, 49%)
CMYKcmyk(0%, 72.8%, 11.2%, 51%)
CIE-LABlab(31.00, 47.53, -23.82)
CIE-LCHlch(31.00, 53.16, 333.38°)
OKLaboklab(42.54% 0.1384 -0.0651)
OKLCHoklch(42.54% 0.153 334.8)
XYZxyz(11.8988, 6.6527, 15.6933)
Luminance0.0665 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D226F #227D30
analogous
#5D227D #7D226F #7D2241
triadic
#7D226F #6F7D22 #226F7D
tetradic
#7D226F #7D5D22 #227D30 #22417D
square
#7D226F #7D5D22 #227D30 #22417D
split-complementary
#7D226F #417D22 #227D5D
monochromatic
#1D081A #4D1544 #7D226F #AD2F9A #CE4BBA

Accessibility & contrast

On white

9.01
#7D226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D226F
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D226F#FFFFFF#000000##FFFFFF
##7D226F1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d226f;
/* rgb */ color: rgb(125, 34, 111);
/* oklch */ color: oklch(42.5% 0.153 334.8);
Tailwind
colors: {
  custom: {
    50: '#a66698',
    500: '#7d226f',
    950: '#000000',
  },
}
SCSS
$custom: #7d226f;
$custom-light: #a66698;
$custom-dark: #000000;
JSON
{
  "hex": "#7d226f",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 309.231,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42535,
    "c": 0.15292,
    "h": 334.8
  },
  "luminance": 0.06652
}

Semantic roles & 50–950 ramp

primary
#7D226F
secondary
#4BB05B
accent
#E05F47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D226F

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

Preview Lab → · Contrast checker → · Palette generator →

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