#7A2286#7A2286

#7A2286 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.4% C 0.170 H 322.6°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#7A2286
RGBrgb(122, 34, 134)
HSLhsl(293, 60%, 33%)
HSVhsv(293, 75%, 53%)
CMYKcmyk(9%, 74.6%, 0%, 47.5%)
CIE-LABlab(31.82, 50.86, -37.05)
CIE-LCHlch(31.82, 62.92, 323.92°)
OKLaboklab(43.45% 0.1354 -0.1035)
OKLCHoklch(43.45% 0.17 322.6)
XYZxyz(12.9007, 7.0036, 23.2220)
Luminance0.0700 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2286 #2E8622
analogous
#482286 #7A2286 #862260
triadic
#7A2286 #867A22 #22867A
tetradic
#7A2286 #864822 #2E8622 #226086
square
#7A2286 #864822 #2E8622 #226086
split-complementary
#7A2286 #608622 #228648
monochromatic
#210924 #4E1655 #7A2286 #A62EB7 #C350D3

Accessibility & contrast

On white

8.75
#7A2286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7A2286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2286
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2286#FFFFFF#000000##FFFFFF
##7A22861.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004489
Deuteranopia (green-blind)
#314E84
Tritanopia (blue-blind)
#7C3452
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7a2286;
/* rgb */ color: rgb(122, 34, 134);
/* oklch */ color: oklch(43.4% 0.170 322.6);
Tailwind
colors: {
  custom: {
    50: '#a467aa',
    500: '#7a2286',
    950: '#000000',
  },
}
SCSS
$custom: #7a2286;
$custom-light: #a467aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2286",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 292.8,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43446,
    "c": 0.17044,
    "h": 322.6
  },
  "luminance": 0.07003
}

Semantic roles & 50–950 ramp

primary
#7A2286
secondary
#5AB64E
accent
#E34558
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A2286

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

Preview Lab → · Contrast checker → · Palette generator →

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