#7E289A#7E289A

#7E289A is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.0% C 0.183 H 316.4°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#7E289A
RGBrgb(126, 40, 154)
HSLhsl(285, 59%, 38%)
HSVhsv(285, 74%, 60%)
CMYKcmyk(18.2%, 74%, 0%, 39.6%)
CIE-LABlab(34.57, 53.38, -44.89)
CIE-LCHlch(34.57, 69.74, 319.94°)
OKLaboklab(45.96% 0.1327 -0.1263)
OKLCHoklch(45.96% 0.183 316.4)
XYZxyz(15.1948, 8.2869, 31.3647)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E289A #449A28
analogous
#45289A #7E289A #9A287D
triadic
#7E289A #9A7E28 #289A7E
tetradic
#7E289A #9A4528 #449A28 #287D9A
square
#7E289A #9A4528 #449A28 #287D9A
split-complementary
#7E289A #7D9A28 #289A45
monochromatic
#2F0F39 #561B69 #7E289A #A635CA #BB65D7

Accessibility & contrast

On white

7.90
#7E289A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7E289A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E289A
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E289A#FFFFFF#000000##FFFFFF
##7E289A1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9D
Deuteranopia (green-blind)
#285497
Tritanopia (blue-blind)
#7C405F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e289a;
/* rgb */ color: rgb(126, 40, 154);
/* oklch */ color: oklch(46.0% 0.183 316.4);
Tailwind
colors: {
  custom: {
    50: '#a76bb8',
    500: '#7e289a',
    950: '#000000',
  },
}
SCSS
$custom: #7e289a;
$custom-light: #a76bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e289a",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 154
  },
  "hsl": {
    "h": 285.263,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45958,
    "c": 0.1832,
    "h": 316.4
  },
  "luminance": 0.08286
}

Semantic roles & 50–950 ramp

primary
#7E289A
secondary
#77BD61
accent
#E2466C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E289A

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

Preview Lab → · Contrast checker → · Palette generator →

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