#7A228C#7A228C

#7A228C is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.8% C 0.176 H 320.2°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#7A228C
RGBrgb(122, 34, 140)
HSLhsl(290, 61%, 34%)
HSVhsv(290, 76%, 55%)
CMYKcmyk(12.9%, 75.7%, 0%, 45.1%)
CIE-LABlab(32.20, 52.01, -40.15)
CIE-LCHlch(32.20, 65.70, 322.33°)
OKLaboklab(43.85% 0.135 -0.1125)
OKLCHoklch(43.85% 0.176 320.2)
XYZxyz(13.3311, 7.1758, 25.4887)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A228C #348C22
analogous
#45228C #7A228C #8C2269
triadic
#7A228C #8C7A22 #228C7A
tetradic
#7A228C #8C4522 #348C22 #22698C
square
#7A228C #8C4522 #348C22 #22698C
split-complementary
#7A228C #698C22 #228C45
monochromatic
#240A2A #4F165B #7A228C #A52EBD #BF53D5

Accessibility & contrast

On white

8.62
#7A228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7A228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A228C
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A228C#FFFFFF#000000##FFFFFF
##7A228C1.008.622.438.62
#FFFFFF8.621.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#2C4F8A
Tritanopia (blue-blind)
#7A3755
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7a228c;
/* rgb */ color: rgb(122, 34, 140);
/* oklch */ color: oklch(43.8% 0.176 320.2);
Tailwind
colors: {
  custom: {
    50: '#a467ae',
    500: '#7a228c',
    950: '#000000',
  },
}
SCSS
$custom: #7a228c;
$custom-light: #a467ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7a228c",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 289.811,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.43848,
    "c": 0.17575,
    "h": 320.2
  },
  "luminance": 0.07175
}

Semantic roles & 50–950 ramp

primary
#7A228C
secondary
#63B951
accent
#E4445F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A228C

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

Preview Lab → · Contrast checker → · Palette generator →

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