#7A228F#7A228F

#7A228F is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.1% C 0.178 H 319.0°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#7A228F
RGBrgb(122, 34, 143)
HSLhsl(288, 62%, 35%)
HSVhsv(288, 76%, 56%)
CMYKcmyk(14.7%, 76.2%, 0%, 43.9%)
CIE-LABlab(32.40, 52.60, -41.68)
CIE-LCHlch(32.40, 67.11, 321.60°)
OKLaboklab(44.05% 0.1347 -0.117)
OKLCHoklch(44.05% 0.178 319)
XYZxyz(13.5553, 7.2655, 26.6696)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A228F #378F22
analogous
#43228F #7A228F #8F226E
triadic
#7A228F #8F7A22 #228F7A
tetradic
#7A228F #8F4322 #378F22 #226E8F
square
#7A228F #8F4322 #378F22 #226E8F
split-complementary
#7A228F #6E8F22 #228F43
monochromatic
#260A2C #50165E #7A228F #A42EC0 #BE55D7

Accessibility & contrast

On white

8.56
#7A228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A228F
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A228F#FFFFFF#000000##FFFFFF
##7A228F1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#294F8D
Tritanopia (blue-blind)
#7A3857
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7a228f;
/* rgb */ color: rgb(122, 34, 143);
/* oklch */ color: oklch(44.1% 0.178 319.0);
Tailwind
colors: {
  custom: {
    50: '#a467b0',
    500: '#7a228f',
    950: '#000000',
  },
}
SCSS
$custom: #7a228f;
$custom-light: #a467b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a228f",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 288.44,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44053,
    "c": 0.17842,
    "h": 319
  },
  "luminance": 0.07265
}

Semantic roles & 50–950 ramp

primary
#7A228F
secondary
#66BA52
accent
#E54362
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7A228F

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

Preview Lab → · Contrast checker → · Palette generator →

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