#7E2A9C#7E2A9C

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

Color values

HEX#7E2A9C
RGBrgb(126, 42, 156)
HSLhsl(284, 58%, 39%)
HSVhsv(284, 73%, 61%)
CMYKcmyk(19.2%, 73.1%, 0%, 38.8%)
CIE-LABlab(34.99, 52.99, -45.44)
CIE-LCHlch(34.99, 69.81, 319.39°)
OKLaboklab(46.3% 0.1304 -0.128)
OKLCHoklch(46.3% 0.183 315.5)
XYZxyz(15.4319, 8.4924, 32.2724)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A9C #489C2A
analogous
#452A9C #7E2A9C #9C2A81
triadic
#7E2A9C #9C7E2A #2A9C7E
tetradic
#7E2A9C #9C452A #489C2A #2A819C
square
#7E2A9C #9C452A #489C2A #2A819C
split-complementary
#7E2A9C #819C2A #2A9C45
monochromatic
#30103C #571D6C #7E2A9C #A439CA #BA6AD7

Accessibility & contrast

On white

7.78
#7E2A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2A9C
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A9C#FFFFFF#000000##FFFFFF
##7E2A9C1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9F
Deuteranopia (green-blind)
#285599
Tritanopia (blue-blind)
#7C4260
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e2a9c;
/* rgb */ color: rgb(126, 42, 156);
/* oklch */ color: oklch(46.3% 0.183 315.5);
Tailwind
colors: {
  custom: {
    50: '#a76cba',
    500: '#7e2a9c',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a9c;
$custom-light: #a76cba;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a9c",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 156
  },
  "hsl": {
    "h": 284.211,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46296,
    "c": 0.18271,
    "h": 315.5
  },
  "luminance": 0.08492
}

Semantic roles & 50–950 ramp

primary
#7E2A9C
secondary
#7CBD65
accent
#E1476F
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E2A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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