#7D227E#7D227E

#7D227E is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.4% C 0.165 H 327.5°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#7D227E
RGBrgb(125, 34, 126)
HSLhsl(299, 58%, 31%)
HSVhsv(299, 73%, 49%)
CMYKcmyk(0.8%, 73%, 0%, 50.6%)
CIE-LABlab(31.83, 50.08, -32.00)
CIE-LCHlch(31.83, 59.43, 327.42°)
OKLaboklab(43.4% 0.1392 -0.0887)
OKLCHoklch(43.4% 0.165 327.5)
XYZxyz(12.7952, 7.0113, 20.4140)
Luminance0.0701 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D227E #237E22
analogous
#4F227E #7D227E #7E2251
triadic
#7D227E #7E7D22 #227E7D
tetradic
#7D227E #7E4F22 #237E22 #22517E
square
#7D227E #7E4F22 #237E22 #22517E
split-complementary
#7D227E #517E22 #227E4F
monochromatic
#1D081E #4D154E #7D227E #AD2FAE #CD4CCF

Accessibility & contrast

On white

8.74
#7D227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7D227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D227E
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D227E#FFFFFF#000000##FFFFFF
##7D227E1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104381
Deuteranopia (green-blind)
#394F7C
Tritanopia (blue-blind)
#81304E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7d227e;
/* rgb */ color: rgb(125, 34, 126);
/* oklch */ color: oklch(43.4% 0.165 327.5);
Tailwind
colors: {
  custom: {
    50: '#a667a4',
    500: '#7d227e',
    950: '#000000',
  },
}
SCSS
$custom: #7d227e;
$custom-light: #a667a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d227e",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 299.348,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43401,
    "c": 0.16504,
    "h": 327.5
  },
  "luminance": 0.0701
}

Semantic roles & 50–950 ramp

primary
#7D227E
secondary
#4CB14B
accent
#E14749
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D227E

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

Preview Lab → · Contrast checker → · Palette generator →

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