#7E279A#7E279A

#7E279A is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.9% C 0.184 H 316.5°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#7E279A
RGBrgb(126, 39, 154)
HSLhsl(285, 60%, 38%)
HSVhsv(285, 75%, 60%)
CMYKcmyk(18.2%, 74.7%, 0%, 39.6%)
CIE-LABlab(34.44, 53.76, -45.11)
CIE-LCHlch(34.44, 70.18, 320.00°)
OKLaboklab(45.86% 0.1337 -0.127)
OKLCHoklch(45.86% 0.184 316.5)
XYZxyz(15.1615, 8.2204, 31.3536)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E279A #439A27
analogous
#44279A #7E279A #9A277C
triadic
#7E279A #9A7E27 #279A7E
tetradic
#7E279A #9A4427 #439A27 #277C9A
square
#7E279A #9A4427 #439A27 #277C9A
split-complementary
#7E279A #7C9A27 #279A44
monochromatic
#2E0E38 #561B69 #7E279A #A633CB #BB64D8

Accessibility & contrast

On white

7.94
#7E279A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7E279A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E279A
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E279A#FFFFFF#000000##FFFFFF
##7E279A1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e279a;
/* rgb */ color: rgb(126, 39, 154);
/* oklch */ color: oklch(45.9% 0.184 316.5);
Tailwind
colors: {
  custom: {
    50: '#a76ab8',
    500: '#7e279a',
    950: '#000000',
  },
}
SCSS
$custom: #7e279a;
$custom-light: #a76ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e279a",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 154
  },
  "hsl": {
    "h": 285.391,
    "s": 59.585,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45862,
    "c": 0.18435,
    "h": 316.5
  },
  "luminance": 0.0822
}

Semantic roles & 50–950 ramp

primary
#7E279A
secondary
#76BD5F
accent
#E3456B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E279A

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

Preview Lab → · Contrast checker → · Palette generator →

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