#7A2287#7A2287

#7A2287 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.5% C 0.171 H 322.2°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#7A2287
RGBrgb(122, 34, 135)
HSLhsl(292, 60%, 33%)
HSVhsv(292, 75%, 53%)
CMYKcmyk(9.6%, 74.8%, 0%, 47.1%)
CIE-LABlab(31.88, 51.05, -37.57)
CIE-LCHlch(31.88, 63.39, 323.65°)
OKLaboklab(43.51% 0.1354 -0.105)
OKLCHoklch(43.51% 0.171 322.2)
XYZxyz(12.9708, 7.0316, 23.5910)
Luminance0.0703 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2287 #2F8722
analogous
#472287 #7A2287 #872261
triadic
#7A2287 #877A22 #22877A
tetradic
#7A2287 #874722 #2F8722 #226187
square
#7A2287 #874722 #2F8722 #226187
split-complementary
#7A2287 #618722 #228747
monochromatic
#220925 #4E1656 #7A2287 #A62EB8 #C250D3

Accessibility & contrast

On white

8.73
#7A2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7A2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2287
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2287#FFFFFF#000000##FFFFFF
##7A22871.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#304E85
Tritanopia (blue-blind)
#7B3553
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7a2287;
/* rgb */ color: rgb(122, 34, 135);
/* oklch */ color: oklch(43.5% 0.171 322.2);
Tailwind
colors: {
  custom: {
    50: '#a467aa',
    500: '#7a2287',
    950: '#000000',
  },
}
SCSS
$custom: #7a2287;
$custom-light: #a467aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2287",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 292.277,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43512,
    "c": 0.17132,
    "h": 322.2
  },
  "luminance": 0.07031
}

Semantic roles & 50–950 ramp

primary
#7A2287
secondary
#5CB74E
accent
#E34559
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A2287

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

Preview Lab → · Contrast checker → · Palette generator →

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