#7A227F#7A227F

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

Color values

HEX#7A227F
RGBrgb(122, 34, 127)
HSLhsl(297, 58%, 32%)
HSVhsv(297, 73%, 50%)
CMYKcmyk(3.9%, 73.2%, 0%, 50.2%)
CIE-LABlab(31.38, 49.55, -33.37)
CIE-LCHlch(31.38, 59.75, 326.04°)
OKLaboklab(43% 0.1357 -0.0928)
OKLCHoklch(43% 0.164 325.6)
XYZxyz(12.4286, 6.8147, 20.7353)
Luminance0.0681 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A227F #277F22
analogous
#4C227F #7A227F #7F2256
triadic
#7A227F #7F7A22 #227F7A
tetradic
#7A227F #7F4C22 #277F22 #22567F
square
#7A227F #7F4C22 #277F22 #22567F
split-complementary
#7A227F #567F22 #227F4C
monochromatic
#1D081E #4C154F #7A227F #A82FAF #C84CCF

Accessibility & contrast

On white

8.89
#7A227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A227F
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A227F#FFFFFF#000000##FFFFFF
##7A227F1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4382
Deuteranopia (green-blind)
#364E7D
Tritanopia (blue-blind)
#7D314E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7a227f;
/* rgb */ color: rgb(122, 34, 127);
/* oklch */ color: oklch(43.0% 0.164 325.6);
Tailwind
colors: {
  custom: {
    50: '#a466a4',
    500: '#7a227f',
    950: '#000000',
  },
}
SCSS
$custom: #7a227f;
$custom-light: #a466a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a227f",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 296.774,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42997,
    "c": 0.16437,
    "h": 325.6
  },
  "luminance": 0.06814
}

Semantic roles & 50–950 ramp

primary
#7A227F
secondary
#51B24B
accent
#E1474F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A227F

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

Preview Lab → · Contrast checker → · Palette generator →

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