#7A2E9B#7A2E9B

#7A2E9B is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.1% C 0.175 H 313.7°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#7A2E9B
RGBrgb(122, 46, 155)
HSLhsl(282, 54%, 39%)
HSVhsv(282, 70%, 61%)
CMYKcmyk(21.3%, 70.3%, 0%, 39.2%)
CIE-LABlab(34.92, 50.23, -44.97)
CIE-LCHlch(34.92, 67.42, 318.16°)
OKLaboklab(46.1% 0.121 -0.1268)
OKLCHoklch(46.1% 0.175 313.7)
XYZxyz(14.9184, 8.4586, 31.8508)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2E9B #4F9B2E
analogous
#442E9B #7A2E9B #9B2E86
triadic
#7A2E9B #9B7A2E #2E9B7A
tetradic
#7A2E9B #9B442E #4F9B2E #2E869B
square
#7A2E9B #9B442E #4F9B2E #2E869B
split-complementary
#7A2E9B #869B2E #2E9B44
monochromatic
#30123D #55206C #7A2E9B #9E40C6 #B66FD4

Accessibility & contrast

On white

7.80
#7A2E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7A2E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2E9B
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2E9B#FFFFFF#000000##FFFFFF
##7A2E9B1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9E
Deuteranopia (green-blind)
#275499
Tritanopia (blue-blind)
#774461
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7a2e9b;
/* rgb */ color: rgb(122, 46, 155);
/* oklch */ color: oklch(46.1% 0.175 313.7);
Tailwind
colors: {
  custom: {
    50: '#a46db9',
    500: '#7a2e9b',
    950: '#000000',
  },
}
SCSS
$custom: #7a2e9b;
$custom-light: #a46db9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2e9b",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 281.835,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46104,
    "c": 0.17527,
    "h": 313.7
  },
  "luminance": 0.08458
}

Semantic roles & 50–950 ramp

primary
#7A2E9B
secondary
#82BC69
accent
#DE4A77
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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