#7A227D#7A227D

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

Color values

HEX#7A227D
RGBrgb(122, 34, 125)
HSLhsl(298, 57%, 31%)
HSVhsv(298, 73%, 49%)
CMYKcmyk(2.4%, 72.8%, 0%, 51%)
CIE-LABlab(31.26, 49.19, -32.31)
CIE-LCHlch(31.26, 58.85, 326.70°)
OKLaboklab(42.87% 0.1357 -0.0897)
OKLCHoklch(42.87% 0.163 326.5)
XYZxyz(12.2995, 6.7631, 20.0557)
Luminance0.0676 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A227D #257D22
analogous
#4C227D #7A227D #7D2252
triadic
#7A227D #7D7A22 #227D7A
tetradic
#7A227D #7D4C22 #257D22 #22527D
square
#7A227D #7D4C22 #257D22 #22527D
split-complementary
#7A227D #527D22 #227D4C
monochromatic
#1C081D #4B154D #7A227D #A92FAD #CA4BCE

Accessibility & contrast

On white

8.93
#7A227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7A227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A227D
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A227D#FFFFFF#000000##FFFFFF
##7A227D1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4280
Deuteranopia (green-blind)
#374D7B
Tritanopia (blue-blind)
#7D304D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7a227d;
/* rgb */ color: rgb(122, 34, 125);
/* oklch */ color: oklch(42.9% 0.163 326.5);
Tailwind
colors: {
  custom: {
    50: '#a466a3',
    500: '#7a227d',
    950: '#000000',
  },
}
SCSS
$custom: #7a227d;
$custom-light: #a466a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a227d",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 298.022,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42872,
    "c": 0.16265,
    "h": 326.5
  },
  "luminance": 0.06762
}

Semantic roles & 50–950 ramp

primary
#7A227D
secondary
#4EB04B
accent
#E0474C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A227D

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

Preview Lab → · Contrast checker → · Palette generator →

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