#7A2D9F#7A2D9F

#7A2D9F is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.3% C 0.180 H 312.4°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#7A2D9F
RGBrgb(122, 45, 159)
HSLhsl(281, 56%, 40%)
HSVhsv(281, 72%, 62%)
CMYKcmyk(23.3%, 71.7%, 0%, 37.6%)
CIE-LABlab(35.04, 51.53, -47.20)
CIE-LCHlch(35.04, 69.88, 317.51°)
OKLaboklab(46.28% 0.1217 -0.1333)
OKLCHoklch(46.28% 0.181 312.4)
XYZxyz(15.2213, 8.5180, 33.6365)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2D9F #529F2D
analogous
#412D9F #7A2D9F #9F2D8B
triadic
#7A2D9F #9F7A2D #2D9F7A
tetradic
#7A2D9F #9F412D #529F2D #2D8B9F
square
#7A2D9F #9F412D #529F2D #2D8B9F
split-complementary
#7A2D9F #8B9F2D #2D9F41
monochromatic
#311240 #55206F #7A2D9F #9D40C9 #B570D6

Accessibility & contrast

On white

7.77
#7A2D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7A2D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2D9F
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2D9F#FFFFFF#000000##FFFFFF
##7A2D9F1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA2
Deuteranopia (green-blind)
#21549C
Tritanopia (blue-blind)
#764563
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7a2d9f;
/* rgb */ color: rgb(122, 45, 159);
/* oklch */ color: oklch(46.3% 0.180 312.4);
Tailwind
colors: {
  custom: {
    50: '#a46dbc',
    500: '#7a2d9f',
    950: '#000000',
  },
}
SCSS
$custom: #7a2d9f;
$custom-light: #a46dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2d9f",
  "rgb": {
    "r": 122,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 280.526,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.46276,
    "c": 0.1805,
    "h": 312.4
  },
  "luminance": 0.08518
}

Semantic roles & 50–950 ramp

primary
#7A2D9F
secondary
#85BE6A
accent
#DF4979
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A2D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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