#7A227E#7A227E

#7A227E is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.9% C 0.164 H 326.1°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#7A227E
RGBrgb(122, 34, 126)
HSLhsl(297, 58%, 31%)
HSVhsv(297, 73%, 49%)
CMYKcmyk(3.2%, 73%, 0%, 50.6%)
CIE-LABlab(31.32, 49.37, -32.84)
CIE-LCHlch(31.32, 59.30, 326.37°)
OKLaboklab(42.93% 0.1357 -0.0912)
OKLCHoklch(42.93% 0.164 326.1)
XYZxyz(12.3637, 6.7888, 20.3938)
Luminance0.0679 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A227E #267E22
analogous
#4C227E #7A227E #7E2254
triadic
#7A227E #7E7A22 #227E7A
tetradic
#7A227E #7E4C22 #267E22 #22547E
square
#7A227E #7E4C22 #267E22 #22547E
split-complementary
#7A227E #547E22 #227E4C
monochromatic
#1D081E #4B154E #7A227E #A92FAE #C94CCF

Accessibility & contrast

On white

8.91
#7A227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7A227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A227E
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A227E#FFFFFF#000000##FFFFFF
##7A227E1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4381
Deuteranopia (green-blind)
#374D7C
Tritanopia (blue-blind)
#7D314E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7a227e;
/* rgb */ color: rgb(122, 34, 126);
/* oklch */ color: oklch(42.9% 0.164 326.1);
Tailwind
colors: {
  custom: {
    50: '#a466a4',
    500: '#7a227e',
    950: '#000000',
  },
}
SCSS
$custom: #7a227e;
$custom-light: #a466a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a227e",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 297.391,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42934,
    "c": 0.1635,
    "h": 326.1
  },
  "luminance": 0.06788
}

Semantic roles & 50–950 ramp

primary
#7A227E
secondary
#50B14B
accent
#E1474E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A227E

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

Preview Lab → · Contrast checker → · Palette generator →

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