#7A226F#7A226F

#7A226F is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.0% C 0.151 H 333.4°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#7A226F
RGBrgb(122, 34, 111)
HSLhsl(308, 56%, 31%)
HSVhsv(308, 72%, 48%)
CMYKcmyk(0%, 72.1%, 9%, 52.2%)
CIE-LABlab(30.47, 46.75, -24.69)
CIE-LCHlch(30.47, 52.87, 332.16°)
OKLaboklab(42.05% 0.1351 -0.0676)
OKLCHoklch(42.05% 0.151 333.4)
XYZxyz(11.4674, 6.4303, 15.6730)
Luminance0.0643 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A226F #227A2D
analogous
#59227A #7A226F #7A2243
triadic
#7A226F #6F7A22 #226F7A
tetradic
#7A226F #7A5922 #227A2D #22437A
square
#7A226F #7A5922 #227A2D #22437A
split-complementary
#7A226F #437A22 #227A59
monochromatic
#1A0718 #4A1543 #7A226F #AA2F9B #CD4ABC

Accessibility & contrast

On white

9.19
#7A226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7A226F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A226F
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A226F#FFFFFF#000000##FFFFFF
##7A226F1.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4071
Deuteranopia (green-blind)
#3F4C6D
Tritanopia (blue-blind)
#802A45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7a226f;
/* rgb */ color: rgb(122, 34, 111);
/* oklch */ color: oklch(42.0% 0.151 333.4);
Tailwind
colors: {
  custom: {
    50: '#a36698',
    500: '#7a226f',
    950: '#000000',
  },
}
SCSS
$custom: #7a226f;
$custom-light: #a36698;
$custom-dark: #000000;
JSON
{
  "hex": "#7a226f",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 307.5,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.4205,
    "c": 0.15107,
    "h": 333.4
  },
  "luminance": 0.06429
}

Semantic roles & 50–950 ramp

primary
#7A226F
secondary
#4BAD57
accent
#E05B48
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #7A226F

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

Preview Lab → · Contrast checker → · Palette generator →

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