#7A2E97#7A2E97

#7A2E97 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.8% C 0.171 H 315.1°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#7A2E97
RGBrgb(122, 46, 151)
HSLhsl(283, 53%, 39%)
HSVhsv(283, 70%, 59%)
CMYKcmyk(19.2%, 69.5%, 0%, 40.8%)
CIE-LABlab(34.65, 49.37, -42.97)
CIE-LCHlch(34.65, 65.45, 318.97°)
OKLaboklab(45.83% 0.1214 -0.1209)
OKLCHoklch(45.83% 0.171 315.1)
XYZxyz(14.5880, 8.3264, 30.1109)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2E97 #4B972E
analogous
#462E97 #7A2E97 #972E7F
triadic
#7A2E97 #977A2E #2E977A
tetradic
#7A2E97 #97462E #4B972E #2E7F97
square
#7A2E97 #97462E #4B972E #2E7F97
split-complementary
#7A2E97 #7F972E #2E9746
monochromatic
#2E1139 #542068 #7A2E97 #9F3EC4 #B66DD2

Accessibility & contrast

On white

7.88
#7A2E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7A2E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2E97
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2E97#FFFFFF#000000##FFFFFF
##7A2E971.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#2B5395
Tritanopia (blue-blind)
#78435F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a2e97;
/* rgb */ color: rgb(122, 46, 151);
/* oklch */ color: oklch(45.8% 0.171 315.1);
Tailwind
colors: {
  custom: {
    50: '#a46db6',
    500: '#7a2e97',
    950: '#000000',
  },
}
SCSS
$custom: #7a2e97;
$custom-light: #a46db6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2e97",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 283.429,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45828,
    "c": 0.1713,
    "h": 315.1
  },
  "luminance": 0.08326
}

Semantic roles & 50–950 ramp

primary
#7A2E97
secondary
#7EBA67
accent
#DD4B73
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2E97

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

Preview Lab → · Contrast checker → · Palette generator →

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