#7A2397#7A2397

#7A2397 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.7% C 0.185 H 316.0°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#7A2397
RGBrgb(122, 35, 151)
HSLhsl(285, 62%, 36%)
HSVhsv(285, 77%, 59%)
CMYKcmyk(19.2%, 76.8%, 0%, 40.8%)
CIE-LABlab(33.08, 53.83, -45.50)
CIE-LCHlch(33.08, 70.48, 319.79°)
OKLaboklab(44.71% 0.1327 -0.1282)
OKLCHoklch(44.71% 0.185 316)
XYZxyz(14.2121, 7.5746, 29.9856)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2397 #409723
analogous
#402397 #7A2397 #97237A
triadic
#7A2397 #977A23 #23977A
tetradic
#7A2397 #974023 #409723 #237A97
square
#7A2397 #974023 #409723 #237A97
split-complementary
#7A2397 #7A9723 #239740
monochromatic
#2A0C34 #521765 #7A2397 #A22FC9 #BA5BD9

Accessibility & contrast

On white

8.35
#7A2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7A2397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2397
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2397#FFFFFF#000000##FFFFFF
##7A23971.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a2397;
/* rgb */ color: rgb(122, 35, 151);
/* oklch */ color: oklch(44.7% 0.185 316.0);
Tailwind
colors: {
  custom: {
    50: '#a468b6',
    500: '#7a2397',
    950: '#000000',
  },
}
SCSS
$custom: #7a2397;
$custom-light: #a468b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2397",
  "rgb": {
    "r": 122,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 285,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44708,
    "c": 0.18455,
    "h": 316
  },
  "luminance": 0.07574
}

Semantic roles & 50–950 ramp

primary
#7A2397
secondary
#72BE58
accent
#E5426B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2397

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

Preview Lab → · Contrast checker → · Palette generator →

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