#7A2E9F#7A2E9F

#7A2E9F is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.4% C 0.179 H 312.3°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#7A2E9F
RGBrgb(122, 46, 159)
HSLhsl(280, 55%, 40%)
HSVhsv(280, 71%, 62%)
CMYKcmyk(23.3%, 71.1%, 0%, 37.6%)
CIE-LABlab(35.19, 51.09, -46.95)
CIE-LCHlch(35.19, 69.39, 317.42°)
OKLaboklab(46.39% 0.1206 -0.1326)
OKLCHoklch(46.39% 0.179 312.3)
XYZxyz(15.2599, 8.5952, 33.6493)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2E9F #539F2E
analogous
#412E9F #7A2E9F #9F2E8B
triadic
#7A2E9F #9F7A2E #2E9F7A
tetradic
#7A2E9F #9F412E #539F2E #2E8B9F
square
#7A2E9F #9F412E #539F2E #2E8B9F
split-complementary
#7A2E9F #8B9F2E #2E9F41
monochromatic
#311340 #562070 #7A2E9F #9C42C8 #B571D6

Accessibility & contrast

On white

7.72
#7A2E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7A2E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2E9F
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2E9F#FFFFFF#000000##FFFFFF
##7A2E9F1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA2
Deuteranopia (green-blind)
#22549C
Tritanopia (blue-blind)
#764663
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a2e9f;
/* rgb */ color: rgb(122, 46, 159);
/* oklch */ color: oklch(46.4% 0.179 312.3);
Tailwind
colors: {
  custom: {
    50: '#a46dbc',
    500: '#7a2e9f',
    950: '#000000',
  },
}
SCSS
$custom: #7a2e9f;
$custom-light: #a46dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2e9f",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 280.354,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46385,
    "c": 0.17925,
    "h": 312.3
  },
  "luminance": 0.08595
}

Semantic roles & 50–950 ramp

primary
#7A2E9F
secondary
#86BE6B
accent
#DE497A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A2E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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