#7E289F#7E289F

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

Color values

HEX#7E289F
RGBrgb(126, 40, 159)
HSLhsl(283, 60%, 39%)
HSVhsv(283, 75%, 62%)
CMYKcmyk(20.8%, 74.8%, 0%, 37.6%)
CIE-LABlab(34.92, 54.40, -47.37)
CIE-LCHlch(34.92, 72.14, 318.95°)
OKLaboklab(46.31% 0.132 -0.1336)
OKLCHoklch(46.31% 0.188 314.7)
XYZxyz(15.6199, 8.4570, 33.6037)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E289F #499F28
analogous
#42289F #7E289F #9F2885
triadic
#7E289F #9F7E28 #289F7E
tetradic
#7E289F #9F4228 #499F28 #28859F
square
#7E289F #9F4228 #499F28 #28859F
split-complementary
#7E289F #859F28 #289F42
monochromatic
#310F3D #571C6E #7E289F #A337CD #BA68D9

Accessibility & contrast

On white

7.80
#7E289F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7E289F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E289F
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E289F#FFFFFF#000000##FFFFFF
##7E289F1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA2
Deuteranopia (green-blind)
#22549C
Tritanopia (blue-blind)
#7B4262
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e289f;
/* rgb */ color: rgb(126, 40, 159);
/* oklch */ color: oklch(46.3% 0.188 314.7);
Tailwind
colors: {
  custom: {
    50: '#a76bbc',
    500: '#7e289f',
    950: '#000000',
  },
}
SCSS
$custom: #7e289f;
$custom-light: #a76bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e289f",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 159
  },
  "hsl": {
    "h": 283.361,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46311,
    "c": 0.18785,
    "h": 314.7
  },
  "luminance": 0.08456
}

Semantic roles & 50–950 ramp

primary
#7E289F
secondary
#7DBF64
accent
#E34571
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E289F

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

Preview Lab → · Contrast checker → · Palette generator →

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