#7A228A#7A228A

#7A228A is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.7% C 0.174 H 321.0°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#7A228A
RGBrgb(122, 34, 138)
HSLhsl(291, 60%, 34%)
HSVhsv(291, 75%, 54%)
CMYKcmyk(11.6%, 75.4%, 0%, 45.9%)
CIE-LABlab(32.07, 51.62, -39.12)
CIE-LCHlch(32.07, 64.77, 322.84°)
OKLaboklab(43.71% 0.1352 -0.1095)
OKLCHoklch(43.71% 0.174 321)
XYZxyz(13.1850, 7.1173, 24.7191)
Luminance0.0712 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A228A #328A22
analogous
#46228A #7A228A #8A2266
triadic
#7A228A #8A7A22 #228A7A
tetradic
#7A228A #8A4622 #328A22 #22668A
square
#7A228A #8A4622 #328A22 #22668A
split-complementary
#7A228A #668A22 #228A46
monochromatic
#230A28 #4F1659 #7A228A #A52EBB #C052D4

Accessibility & contrast

On white

8.67
#7A228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7A228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A228A
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A228A#FFFFFF#000000##FFFFFF
##7A228A1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#2E4F88
Tritanopia (blue-blind)
#7B3654
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7a228a;
/* rgb */ color: rgb(122, 34, 138);
/* oklch */ color: oklch(43.7% 0.174 321.0);
Tailwind
colors: {
  custom: {
    50: '#a467ad',
    500: '#7a228a',
    950: '#000000',
  },
}
SCSS
$custom: #7a228a;
$custom-light: #a467ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7a228a",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 290.769,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.43712,
    "c": 0.17397,
    "h": 321
  },
  "luminance": 0.07117
}

Semantic roles & 50–950 ramp

primary
#7A228A
secondary
#60B850
accent
#E4445D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A228A

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

Preview Lab → · Contrast checker → · Palette generator →

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