#7A2297#7A2297

#7A2297 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.6% C 0.186 H 316.1°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#7A2297
RGBrgb(122, 34, 151)
HSLhsl(285, 63%, 36%)
HSVhsv(285, 77%, 59%)
CMYKcmyk(19.2%, 77.5%, 0%, 40.8%)
CIE-LABlab(32.96, 54.19, -45.70)
CIE-LCHlch(32.96, 70.89, 319.86°)
OKLaboklab(44.62% 0.1336 -0.1288)
OKLCHoklch(44.62% 0.186 316.1)
XYZxyz(14.1831, 7.5166, 29.9759)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2297 #3F9722
analogous
#402297 #7A2297 #97227A
triadic
#7A2297 #977A22 #22977A
tetradic
#7A2297 #974022 #3F9722 #227A97
square
#7A2297 #974022 #3F9722 #227A97
split-complementary
#7A2297 #7A9722 #229740
monochromatic
#290C33 #521765 #7A2297 #A22DC9 #BA5ADA

Accessibility & contrast

On white

8.39
#7A2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7A2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2297
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2297#FFFFFF#000000##FFFFFF
##7A22971.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#205094
Tritanopia (blue-blind)
#783C5C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7a2297;
/* rgb */ color: rgb(122, 34, 151);
/* oklch */ color: oklch(44.6% 0.186 316.1);
Tailwind
colors: {
  custom: {
    50: '#a467b6',
    500: '#7a2297',
    950: '#000000',
  },
}
SCSS
$custom: #7a2297;
$custom-light: #a467b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2297",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 285.128,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44619,
    "c": 0.18562,
    "h": 316.1
  },
  "luminance": 0.07516
}

Semantic roles & 50–950 ramp

primary
#7A2297
secondary
#70BE57
accent
#E6426A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2297

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

Preview Lab → · Contrast checker → · Palette generator →

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