#7A227B#7A227B

#7A227B is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.8% C 0.161 H 327.5°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#7A227B
RGBrgb(122, 34, 123)
HSLhsl(299, 57%, 31%)
HSVhsv(299, 72%, 48%)
CMYKcmyk(0.8%, 72.4%, 0%, 51.8%)
CIE-LABlab(31.14, 48.83, -31.24)
CIE-LCHlch(31.14, 57.97, 327.39°)
OKLaboklab(42.75% 0.1357 -0.0865)
OKLCHoklch(42.75% 0.161 327.5)
XYZxyz(12.1730, 6.7125, 19.3895)
Luminance0.0671 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A227B #237B22
analogous
#4D227B #7A227B #7B224F
triadic
#7A227B #7B7A22 #227B7A
tetradic
#7A227B #7B4D22 #237B22 #224F7B
square
#7A227B #7B4D22 #237B22 #224F7B
split-complementary
#7A227B #4F7B22 #227B4D
monochromatic
#1B071B #4A154B #7A227B #AA2FAB #CC4ACD

Accessibility & contrast

On white

8.97
#7A227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7A227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A227B
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A227B#FFFFFF#000000##FFFFFF
##7A227B1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12427D
Deuteranopia (green-blind)
#384D79
Tritanopia (blue-blind)
#7E2F4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7a227b;
/* rgb */ color: rgb(122, 34, 123);
/* oklch */ color: oklch(42.8% 0.161 327.5);
Tailwind
colors: {
  custom: {
    50: '#a466a1',
    500: '#7a227b',
    950: '#000000',
  },
}
SCSS
$custom: #7a227b;
$custom-light: #a466a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a227b",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 299.326,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.4275,
    "c": 0.16094,
    "h": 327.5
  },
  "luminance": 0.06712
}

Semantic roles & 50–950 ramp

primary
#7A227B
secondary
#4CAE4B
accent
#E0484A
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A227B

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

Preview Lab → · Contrast checker → · Palette generator →

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