#7E279B#7E279B

#7E279B is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.9% C 0.185 H 316.1°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#7E279B
RGBrgb(126, 39, 155)
HSLhsl(285, 60%, 38%)
HSVhsv(285, 75%, 61%)
CMYKcmyk(18.7%, 74.8%, 0%, 39.2%)
CIE-LABlab(34.51, 53.97, -45.61)
CIE-LCHlch(34.51, 70.66, 319.80°)
OKLaboklab(45.93% 0.1335 -0.1284)
OKLCHoklch(45.93% 0.185 316.1)
XYZxyz(15.2452, 8.2538, 31.7941)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E279B #449B27
analogous
#44279B #7E279B #9B277E
triadic
#7E279B #9B7E27 #279B7E
tetradic
#7E279B #9B4427 #449B27 #277E9B
square
#7E279B #9B4427 #449B27 #277E9B
split-complementary
#7E279B #7E9B27 #279B44
monochromatic
#2F0E39 #561B6A #7E279B #A633CC #BB64D8

Accessibility & contrast

On white

7.92
#7E279B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7E279B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E279B
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E279B#FFFFFF#000000##FFFFFF
##7E279B1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e279b;
/* rgb */ color: rgb(126, 39, 155);
/* oklch */ color: oklch(45.9% 0.185 316.1);
Tailwind
colors: {
  custom: {
    50: '#a76ab9',
    500: '#7e279b',
    950: '#000000',
  },
}
SCSS
$custom: #7e279b;
$custom-light: #a76ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e279b",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 155
  },
  "hsl": {
    "h": 285,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45932,
    "c": 0.18527,
    "h": 316.1
  },
  "luminance": 0.08253
}

Semantic roles & 50–950 ramp

primary
#7E279B
secondary
#77BE60
accent
#E3456C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E279B

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

Preview Lab → · Contrast checker → · Palette generator →

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