#7A2497#7A2497

#7A2497 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.183 H 315.9°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#7A2497
RGBrgb(122, 36, 151)
HSLhsl(285, 61%, 37%)
HSVhsv(285, 76%, 59%)
CMYKcmyk(19.2%, 76.2%, 0%, 40.8%)
CIE-LABlab(33.21, 53.46, -45.29)
CIE-LCHlch(33.21, 70.07, 319.73°)
OKLaboklab(44.8% 0.1318 -0.1276)
OKLCHoklch(44.8% 0.183 315.9)
XYZxyz(14.2420, 7.6343, 29.9955)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2497 #419724
analogous
#412497 #7A2497 #97247B
triadic
#7A2497 #977A24 #24977A
tetradic
#7A2497 #974124 #419724 #247B97
square
#7A2497 #974124 #419724 #247B97
split-complementary
#7A2497 #7B9724 #249741
monochromatic
#2A0C34 #521866 #7A2497 #A230C8 #B95DD8

Accessibility & contrast

On white

8.31
#7A2497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7A2497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2497
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2497#FFFFFF#000000##FFFFFF
##7A24971.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#225094
Tritanopia (blue-blind)
#783D5C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7a2497;
/* rgb */ color: rgb(122, 36, 151);
/* oklch */ color: oklch(44.8% 0.183 315.9);
Tailwind
colors: {
  custom: {
    50: '#a468b6',
    500: '#7a2497',
    950: '#000000',
  },
}
SCSS
$custom: #7a2497;
$custom-light: #a468b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2497",
  "rgb": {
    "r": 122,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 284.87,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.44799,
    "c": 0.18346,
    "h": 315.9
  },
  "luminance": 0.07634
}

Semantic roles & 50–950 ramp

primary
#7A2497
secondary
#73BD5A
accent
#E5436C
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2497

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

Preview Lab → · Contrast checker → · Palette generator →

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