#7E289D#7E289D

#7E289D is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.2% C 0.186 H 315.3°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#7E289D
RGBrgb(126, 40, 157)
HSLhsl(284, 59%, 39%)
HSVhsv(284, 75%, 62%)
CMYKcmyk(19.7%, 74.5%, 0%, 38.4%)
CIE-LABlab(34.78, 53.99, -46.38)
CIE-LCHlch(34.78, 71.18, 319.34°)
OKLaboklab(46.17% 0.1323 -0.1307)
OKLCHoklch(46.17% 0.186 315.3)
XYZxyz(15.4478, 8.3881, 32.6971)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E289D #479D28
analogous
#43289D #7E289D #9D2881
triadic
#7E289D #9D7E28 #289D7E
tetradic
#7E289D #9D4328 #479D28 #28819D
square
#7E289D #9D4328 #479D28 #28819D
split-complementary
#7E289D #819D28 #289D43
monochromatic
#300F3B #571C6C #7E289D #A436CC #BA67D8

Accessibility & contrast

On white

7.84
#7E289D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7E289D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E289D
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E289D#FFFFFF#000000##FFFFFF
##7E289D1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#24549A
Tritanopia (blue-blind)
#7C4160
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e289d;
/* rgb */ color: rgb(126, 40, 157);
/* oklch */ color: oklch(46.2% 0.186 315.3);
Tailwind
colors: {
  custom: {
    50: '#a76bbb',
    500: '#7e289d',
    950: '#000000',
  },
}
SCSS
$custom: #7e289d;
$custom-light: #a76bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e289d",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 157
  },
  "hsl": {
    "h": 284.103,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46169,
    "c": 0.18598,
    "h": 315.3
  },
  "luminance": 0.08388
}

Semantic roles & 50–950 ramp

primary
#7E289D
secondary
#7BBE62
accent
#E3456F
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E289D

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

Preview Lab → · Contrast checker → · Palette generator →

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