#7E289B#7E289B

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

Color values

HEX#7E289B
RGBrgb(126, 40, 155)
HSLhsl(285, 59%, 38%)
HSVhsv(285, 74%, 61%)
CMYKcmyk(18.7%, 74.2%, 0%, 39.2%)
CIE-LABlab(34.64, 53.58, -45.39)
CIE-LCHlch(34.64, 70.22, 319.73°)
OKLaboklab(46.03% 0.1325 -0.1278)
OKLCHoklch(46.03% 0.184 316)
XYZxyz(15.2784, 8.3204, 31.8052)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E289B #459B28
analogous
#45289B #7E289B #9B287E
triadic
#7E289B #9B7E28 #289B7E
tetradic
#7E289B #9B4528 #459B28 #287E9B
square
#7E289B #9B4528 #459B28 #287E9B
split-complementary
#7E289B #7E9B28 #289B45
monochromatic
#2F0F3A #561B6A #7E289B #A535CB #BB66D7

Accessibility & contrast

On white

7.88
#7E289B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E289B
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E289B#FFFFFF#000000##FFFFFF
##7E289B1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e289b;
/* rgb */ color: rgb(126, 40, 155);
/* oklch */ color: oklch(46.0% 0.184 316.0);
Tailwind
colors: {
  custom: {
    50: '#a76bb9',
    500: '#7e289b',
    950: '#000000',
  },
}
SCSS
$custom: #7e289b;
$custom-light: #a76bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e289b",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 155
  },
  "hsl": {
    "h": 284.87,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46028,
    "c": 0.18413,
    "h": 316
  },
  "luminance": 0.0832
}

Semantic roles & 50–950 ramp

primary
#7E289B
secondary
#79BD61
accent
#E2466D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E289B

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

Preview Lab → · Contrast checker → · Palette generator →

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