#7E2A9F#7E2A9F

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

Color values

HEX#7E2A9F
RGBrgb(126, 42, 159)
HSLhsl(283, 58%, 39%)
HSVhsv(283, 74%, 62%)
CMYKcmyk(20.8%, 73.6%, 0%, 37.6%)
CIE-LABlab(35.19, 53.62, -46.92)
CIE-LCHlch(35.19, 71.25, 318.81°)
OKLaboklab(46.51% 0.1301 -0.1323)
OKLCHoklch(46.51% 0.186 314.5)
XYZxyz(15.6891, 8.5953, 33.6268)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A9F #4B9F2A
analogous
#442A9F #7E2A9F #9F2A86
triadic
#7E2A9F #9F7E2A #2A9F7E
tetradic
#7E2A9F #9F442A #4B9F2A #2A869F
square
#7E2A9F #9F442A #4B9F2A #2A869F
split-complementary
#7E2A9F #869F2A #2A9F44
monochromatic
#31103E #581D6F #7E2A9F #A33BCB #B96BD8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E2A9F#FFFFFF#000000##FFFFFF
##7E2A9F1.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)
#004EA2
Deuteranopia (green-blind)
#24559C
Tritanopia (blue-blind)
#7B4362
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e2a9f;
/* rgb */ color: rgb(126, 42, 159);
/* oklch */ color: oklch(46.5% 0.186 314.5);
Tailwind
colors: {
  custom: {
    50: '#a76cbc',
    500: '#7e2a9f',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a9f;
$custom-light: #a76cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a9f",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 159
  },
  "hsl": {
    "h": 283.077,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46507,
    "c": 0.18554,
    "h": 314.5
  },
  "luminance": 0.08595
}

Semantic roles & 50–950 ramp

primary
#7E2A9F
secondary
#7FBF66
accent
#E14672
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E2A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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