#7A2597#7A2597

#7A2597 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.9% C 0.182 H 315.8°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#7A2597
RGBrgb(122, 37, 151)
HSLhsl(285, 61%, 37%)
HSVhsv(285, 75%, 59%)
CMYKcmyk(19.2%, 75.5%, 0%, 40.8%)
CIE-LABlab(33.34, 53.09, -45.08)
CIE-LCHlch(33.34, 69.64, 319.66°)
OKLaboklab(44.89% 0.1308 -0.127)
OKLCHoklch(44.89% 0.182 315.8)
XYZxyz(14.2726, 7.6956, 30.0057)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2597 #429725
analogous
#412597 #7A2597 #97257B
triadic
#7A2597 #977A25 #25977A
tetradic
#7A2597 #974125 #429725 #257B97
square
#7A2597 #974125 #429725 #257B97
split-complementary
#7A2597 #7B9725 #259741
monochromatic
#2B0D35 #521966 #7A2597 #A231C8 #B95FD8

Accessibility & contrast

On white

8.27
#7A2597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7A2597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2597
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2597#FFFFFF#000000##FFFFFF
##7A25971.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a2597;
/* rgb */ color: rgb(122, 37, 151);
/* oklch */ color: oklch(44.9% 0.182 315.8);
Tailwind
colors: {
  custom: {
    50: '#a469b6',
    500: '#7a2597',
    950: '#000000',
  },
}
SCSS
$custom: #7a2597;
$custom-light: #a469b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2597",
  "rgb": {
    "r": 122,
    "g": 37,
    "b": 151
  },
  "hsl": {
    "h": 284.737,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.44892,
    "c": 0.18234,
    "h": 315.8
  },
  "luminance": 0.07695
}

Semantic roles & 50–950 ramp

primary
#7A2597
secondary
#74BD5B
accent
#E4446D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2597

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

Preview Lab → · Contrast checker → · Palette generator →

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