#7A228E#7A228E

#7A228E is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.0% C 0.178 H 319.4°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#7A228E
RGBrgb(122, 34, 142)
HSLhsl(289, 61%, 35%)
HSVhsv(289, 76%, 56%)
CMYKcmyk(14.1%, 76.1%, 0%, 44.3%)
CIE-LABlab(32.34, 52.40, -41.17)
CIE-LCHlch(32.34, 66.64, 321.84°)
OKLaboklab(43.98% 0.1348 -0.1155)
OKLCHoklch(43.98% 0.178 319.4)
XYZxyz(13.4799, 7.2353, 26.2725)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A228E #368E22
analogous
#44228E #7A228E #8E226C
triadic
#7A228E #8E7A22 #228E7A
tetradic
#7A228E #8E4422 #368E22 #226C8E
square
#7A228E #8E4422 #368E22 #226C8E
split-complementary
#7A228E #6C8E22 #228E44
monochromatic
#250A2B #50165D #7A228E #A42EBF #BE54D6

Accessibility & contrast

On white

8.58
#7A228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7A228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A228E
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A228E#FFFFFF#000000##FFFFFF
##7A228E1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#2A4F8C
Tritanopia (blue-blind)
#7A3857
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7a228e;
/* rgb */ color: rgb(122, 34, 142);
/* oklch */ color: oklch(44.0% 0.178 319.4);
Tailwind
colors: {
  custom: {
    50: '#a467b0',
    500: '#7a228e',
    950: '#000000',
  },
}
SCSS
$custom: #7a228e;
$custom-light: #a467b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a228e",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 288.889,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.43984,
    "c": 0.17753,
    "h": 319.4
  },
  "luminance": 0.07235
}

Semantic roles & 50–950 ramp

primary
#7A228E
secondary
#65BA52
accent
#E44361
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A228E

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

Preview Lab → · Contrast checker → · Palette generator →

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