#7E289C#7E289C

#7E289C is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.1% C 0.185 H 315.7°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#7E289C
RGBrgb(126, 40, 156)
HSLhsl(284, 59%, 38%)
HSVhsv(284, 74%, 61%)
CMYKcmyk(19.2%, 74.4%, 0%, 38.8%)
CIE-LABlab(34.71, 53.79, -45.89)
CIE-LCHlch(34.71, 70.70, 319.53°)
OKLaboklab(46.1% 0.1324 -0.1293)
OKLCHoklch(46.1% 0.185 315.7)
XYZxyz(15.3628, 8.3541, 32.2493)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E289C #469C28
analogous
#44289C #7E289C #9C2880
triadic
#7E289C #9C7E28 #289C7E
tetradic
#7E289C #9C4428 #469C28 #28809C
square
#7E289C #9C4428 #469C28 #28809C
split-complementary
#7E289C #809C28 #289C44
monochromatic
#2F0F3B #571C6B #7E289C #A536CB #BB67D8

Accessibility & contrast

On white

7.86
#7E289C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7E289C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E289C
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E289C#FFFFFF#000000##FFFFFF
##7E289C1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e289c;
/* rgb */ color: rgb(126, 40, 156);
/* oklch */ color: oklch(46.1% 0.185 315.7);
Tailwind
colors: {
  custom: {
    50: '#a76bba',
    500: '#7e289c',
    950: '#000000',
  },
}
SCSS
$custom: #7e289c;
$custom-light: #a76bba;
$custom-dark: #000000;
JSON
{
  "hex": "#7e289c",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 156
  },
  "hsl": {
    "h": 284.483,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46099,
    "c": 0.18506,
    "h": 315.7
  },
  "luminance": 0.08354
}

Semantic roles & 50–950 ramp

primary
#7E289C
secondary
#7ABE62
accent
#E2456E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E289C

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

Preview Lab → · Contrast checker → · Palette generator →

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