#7A2B95#7A2B95

#7A2B95 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.4% C 0.173 H 316.1°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#7A2B95
RGBrgb(122, 43, 149)
HSLhsl(285, 55%, 38%)
HSVhsv(285, 71%, 58%)
CMYKcmyk(18.1%, 71.1%, 0%, 41.6%)
CIE-LABlab(34.06, 50.25, -42.71)
CIE-LCHlch(34.06, 65.95, 319.64°)
OKLaboklab(45.36% 0.1249 -0.1201)
OKLCHoklch(45.36% 0.173 316.1)
XYZxyz(14.3139, 8.0358, 29.2250)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2B95 #46952B
analogous
#452B95 #7A2B95 #952B7B
triadic
#7A2B95 #957A2B #2B957A
tetradic
#7A2B95 #95452B #46952B #2B7B95
square
#7A2B95 #95452B #46952B #2B7B95
split-complementary
#7A2B95 #7B952B #2B9545
monochromatic
#2C1036 #531D66 #7A2B95 #A139C4 #B867D3

Accessibility & contrast

On white

8.06
#7A2B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7A2B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2B95
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2B95#FFFFFF#000000##FFFFFF
##7A2B951.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B98
Deuteranopia (green-blind)
#2B5293
Tritanopia (blue-blind)
#78405D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7a2b95;
/* rgb */ color: rgb(122, 43, 149);
/* oklch */ color: oklch(45.4% 0.173 316.1);
Tailwind
colors: {
  custom: {
    50: '#a46cb5',
    500: '#7a2b95',
    950: '#000000',
  },
}
SCSS
$custom: #7a2b95;
$custom-light: #a46cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2b95",
  "rgb": {
    "r": 122,
    "g": 43,
    "b": 149
  },
  "hsl": {
    "h": 284.717,
    "s": 55.208,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45359,
    "c": 0.17325,
    "h": 316.1
  },
  "luminance": 0.08035
}

Semantic roles & 50–950 ramp

primary
#7A2B95
secondary
#78BA62
accent
#DF496F
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2B95

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

Preview Lab → · Contrast checker → · Palette generator →

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