#7A2D96#7A2D96

#7A2D96 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.6% C 0.172 H 315.6°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#7A2D96
RGBrgb(122, 45, 150)
HSLhsl(284, 54%, 38%)
HSVhsv(284, 70%, 59%)
CMYKcmyk(18.7%, 70%, 0%, 41.2%)
CIE-LABlab(34.43, 49.60, -42.72)
CIE-LCHlch(34.43, 65.46, 319.26°)
OKLaboklab(45.65% 0.1226 -0.1201)
OKLCHoklch(45.65% 0.172 315.6)
XYZxyz(14.4686, 8.2169, 29.6721)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2D96 #49962D
analogous
#452D96 #7A2D96 #962D7D
triadic
#7A2D96 #967A2D #2D967A
tetradic
#7A2D96 #96452D #49962D #2D7D96
square
#7A2D96 #96452D #49962D #2D7D96
split-complementary
#7A2D96 #7D962D #2D9645
monochromatic
#2D1138 #541F67 #7A2D96 #A03CC4 #B76BD3

Accessibility & contrast

On white

7.94
#7A2D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7A2D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2D96
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2D96#FFFFFF#000000##FFFFFF
##7A2D961.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a2d96;
/* rgb */ color: rgb(122, 45, 150);
/* oklch */ color: oklch(45.6% 0.172 315.6);
Tailwind
colors: {
  custom: {
    50: '#a46db5',
    500: '#7a2d96',
    950: '#000000',
  },
}
SCSS
$custom: #7a2d96;
$custom-light: #a46db5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2d96",
  "rgb": {
    "r": 122,
    "g": 45,
    "b": 150
  },
  "hsl": {
    "h": 284,
    "s": 53.846,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45647,
    "c": 0.17164,
    "h": 315.6
  },
  "luminance": 0.08216
}

Semantic roles & 50–950 ramp

primary
#7A2D96
secondary
#7CB965
accent
#DD4B72
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2D96

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

Preview Lab → · Contrast checker → · Palette generator →

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