#7A2D95#7A2D95

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

Color values

HEX#7A2D95
RGBrgb(122, 45, 149)
HSLhsl(284, 54%, 38%)
HSVhsv(284, 70%, 58%)
CMYKcmyk(18.1%, 69.8%, 0%, 41.6%)
CIE-LABlab(34.36, 49.39, -42.21)
CIE-LCHlch(34.36, 64.97, 319.48°)
OKLaboklab(45.58% 0.1227 -0.1187)
OKLCHoklch(45.58% 0.171 315.9)
XYZxyz(14.3884, 8.1848, 29.2498)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2D95 #48952D
analogous
#462D95 #7A2D95 #952D7C
triadic
#7A2D95 #957A2D #2D957A
tetradic
#7A2D95 #95462D #48952D #2D7C95
square
#7A2D95 #95462D #48952D #2D7C95
split-complementary
#7A2D95 #7C952D #2D9546
monochromatic
#2D1137 #541F66 #7A2D95 #A03BC4 #B76AD2

Accessibility & contrast

On white

7.96
#7A2D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A2D95
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2D95#FFFFFF#000000##FFFFFF
##7A2D951.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C98
Deuteranopia (green-blind)
#2C5393
Tritanopia (blue-blind)
#78415D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a2d95;
/* rgb */ color: rgb(122, 45, 149);
/* oklch */ color: oklch(45.6% 0.171 315.9);
Tailwind
colors: {
  custom: {
    50: '#a46db5',
    500: '#7a2d95',
    950: '#000000',
  },
}
SCSS
$custom: #7a2d95;
$custom-light: #a46db5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2d95",
  "rgb": {
    "r": 122,
    "g": 45,
    "b": 149
  },
  "hsl": {
    "h": 284.423,
    "s": 53.608,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45579,
    "c": 0.17066,
    "h": 315.9
  },
  "luminance": 0.08184
}

Semantic roles & 50–950 ramp

primary
#7A2D95
secondary
#7BB965
accent
#DD4B71
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2D95

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

Preview Lab → · Contrast checker → · Palette generator →

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