#7E279C#7E279C

#7E279C is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.0% C 0.186 H 315.8°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#7E279C
RGBrgb(126, 39, 156)
HSLhsl(285, 60%, 38%)
HSVhsv(285, 75%, 61%)
CMYKcmyk(19.2%, 75%, 0%, 38.8%)
CIE-LABlab(34.57, 54.17, -46.10)
CIE-LCHlch(34.57, 71.13, 319.60°)
OKLaboklab(46% 0.1334 -0.1299)
OKLCHoklch(46% 0.186 315.8)
XYZxyz(15.3295, 8.2876, 32.2382)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E279C #459C27
analogous
#43279C #7E279C #9C277F
triadic
#7E279C #9C7E27 #279C7E
tetradic
#7E279C #9C4327 #459C27 #277F9C
square
#7E279C #9C4327 #459C27 #277F9C
split-complementary
#7E279C #7F9C27 #279C43
monochromatic
#2F0F3A #561B6B #7E279C #A534CC #BB65D8

Accessibility & contrast

On white

7.90
#7E279C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7E279C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E279C
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E279C#FFFFFF#000000##FFFFFF
##7E279C1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9F
Deuteranopia (green-blind)
#255499
Tritanopia (blue-blind)
#7C4060
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e279c;
/* rgb */ color: rgb(126, 39, 156);
/* oklch */ color: oklch(46.0% 0.186 315.8);
Tailwind
colors: {
  custom: {
    50: '#a76aba',
    500: '#7e279c',
    950: '#000000',
  },
}
SCSS
$custom: #7e279c;
$custom-light: #a76aba;
$custom-dark: #000000;
JSON
{
  "hex": "#7e279c",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 156
  },
  "hsl": {
    "h": 284.615,
    "s": 60,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46003,
    "c": 0.1862,
    "h": 315.8
  },
  "luminance": 0.08287
}

Semantic roles & 50–950 ramp

primary
#7E279C
secondary
#79BE61
accent
#E3456D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E279C

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

Preview Lab → · Contrast checker → · Palette generator →

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