#7A2E96#7A2E96

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

Color values

HEX#7A2E96
RGBrgb(122, 46, 150)
HSLhsl(284, 53%, 38%)
HSVhsv(284, 69%, 59%)
CMYKcmyk(18.7%, 69.3%, 0%, 41.2%)
CIE-LABlab(34.59, 49.16, -42.46)
CIE-LCHlch(34.59, 64.96, 319.18°)
OKLaboklab(45.76% 0.1215 -0.1194)
OKLCHoklch(45.76% 0.17 315.5)
XYZxyz(14.5072, 8.2941, 29.6850)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2E96 #4A962E
analogous
#462E96 #7A2E96 #962E7E
triadic
#7A2E96 #967A2E #2E967A
tetradic
#7A2E96 #96462E #4A962E #2E7E96
square
#7A2E96 #96462E #4A962E #2E7E96
split-complementary
#7A2E96 #7E962E #2E9646
monochromatic
#2E1138 #542067 #7A2E96 #A03EC4 #B76CD2

Accessibility & contrast

On white

7.90
#7A2E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7A2E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2E96
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2E96#FFFFFF#000000##FFFFFF
##7A2E961.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D99
Deuteranopia (green-blind)
#2C5394
Tritanopia (blue-blind)
#78425E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a2e96;
/* rgb */ color: rgb(122, 46, 150);
/* oklch */ color: oklch(45.8% 0.170 315.5);
Tailwind
colors: {
  custom: {
    50: '#a46db5',
    500: '#7a2e96',
    950: '#000000',
  },
}
SCSS
$custom: #7a2e96;
$custom-light: #a46db5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2e96",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 150
  },
  "hsl": {
    "h": 283.846,
    "s": 53.061,
    "l": 38.431
  },
  "oklch": {
    "l": 0.4576,
    "c": 0.17032,
    "h": 315.5
  },
  "luminance": 0.08294
}

Semantic roles & 50–950 ramp

primary
#7A2E96
secondary
#7DB967
accent
#DC4B72
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2E96

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

Preview Lab → · Contrast checker → · Palette generator →

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