#7A228B#7A228B

#7A228B is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.8% C 0.175 H 320.6°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#7A228B
RGBrgb(122, 34, 139)
HSLhsl(290, 61%, 34%)
HSVhsv(290, 76%, 55%)
CMYKcmyk(12.2%, 75.5%, 0%, 45.5%)
CIE-LABlab(32.14, 51.82, -39.64)
CIE-LCHlch(32.14, 65.24, 322.58°)
OKLaboklab(43.78% 0.1351 -0.111)
OKLCHoklch(43.78% 0.175 320.6)
XYZxyz(13.2577, 7.1464, 25.1022)
Luminance0.0715 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A228B #338B22
analogous
#46228B #7A228B #8B2268
triadic
#7A228B #8B7A22 #228B7A
tetradic
#7A228B #8B4622 #338B22 #22688B
square
#7A228B #8B4622 #338B22 #22688B
split-complementary
#7A228B #688B22 #228B46
monochromatic
#240A29 #4F165A #7A228B #A52EBC #C053D5

Accessibility & contrast

On white

8.64
#7A228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A228B
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A228B#FFFFFF#000000##FFFFFF
##7A228B1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#2D4F89
Tritanopia (blue-blind)
#7B3755
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7a228b;
/* rgb */ color: rgb(122, 34, 139);
/* oklch */ color: oklch(43.8% 0.175 320.6);
Tailwind
colors: {
  custom: {
    50: '#a467ad',
    500: '#7a228b',
    950: '#000000',
  },
}
SCSS
$custom: #7a228b;
$custom-light: #a467ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7a228b",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 290.286,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.4378,
    "c": 0.17486,
    "h": 320.6
  },
  "luminance": 0.07146
}

Semantic roles & 50–950 ramp

primary
#7A228B
secondary
#61B850
accent
#E4445E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A228B

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

Preview Lab → · Contrast checker → · Palette generator →

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