#7A228D#7A228D

#7A228D is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.9% C 0.177 H 319.8°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#7A228D
RGBrgb(122, 34, 141)
HSLhsl(289, 61%, 34%)
HSVhsv(289, 76%, 55%)
CMYKcmyk(13.5%, 75.9%, 0%, 44.7%)
CIE-LABlab(32.27, 52.20, -40.66)
CIE-LCHlch(32.27, 66.17, 322.08°)
OKLaboklab(43.92% 0.1349 -0.114)
OKLCHoklch(43.92% 0.177 319.8)
XYZxyz(13.4052, 7.2054, 25.8788)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A228D #358D22
analogous
#45228D #7A228D #8D226B
triadic
#7A228D #8D7A22 #228D7A
tetradic
#7A228D #8D4522 #358D22 #226B8D
square
#7A228D #8D4522 #358D22 #226B8D
split-complementary
#7A228D #6B8D22 #228D45
monochromatic
#250A2A #4F165C #7A228D #A52EBE #BF54D6

Accessibility & contrast

On white

8.60
#7A228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7A228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A228D
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A228D#FFFFFF#000000##FFFFFF
##7A228D1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#2B4F8B
Tritanopia (blue-blind)
#7A3856
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7a228d;
/* rgb */ color: rgb(122, 34, 141);
/* oklch */ color: oklch(43.9% 0.177 319.8);
Tailwind
colors: {
  custom: {
    50: '#a467af',
    500: '#7a228d',
    950: '#000000',
  },
}
SCSS
$custom: #7a228d;
$custom-light: #a467af;
$custom-dark: #000000;
JSON
{
  "hex": "#7a228d",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 289.346,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.43916,
    "c": 0.17663,
    "h": 319.8
  },
  "luminance": 0.07205
}

Semantic roles & 50–950 ramp

primary
#7A228D
secondary
#64B951
accent
#E44460
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A228D

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

Preview Lab → · Contrast checker → · Palette generator →

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