#7E279D#7E279D

#7E279D is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.1% C 0.187 H 315.4°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#7E279D
RGBrgb(126, 39, 157)
HSLhsl(284, 60%, 38%)
HSVhsv(284, 75%, 62%)
CMYKcmyk(19.7%, 75.2%, 0%, 38.4%)
CIE-LABlab(34.64, 54.38, -46.60)
CIE-LCHlch(34.64, 71.61, 319.40°)
OKLaboklab(46.07% 0.1333 -0.1313)
OKLCHoklch(46.07% 0.187 315.4)
XYZxyz(15.4145, 8.3216, 32.6860)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E279D #469D27
analogous
#43279D #7E279D #9D2781
triadic
#7E279D #9D7E27 #279D7E
tetradic
#7E279D #9D4327 #469D27 #27819D
square
#7E279D #9D4327 #469D27 #27819D
split-complementary
#7E279D #819D27 #279D43
monochromatic
#2F0F3B #571B6C #7E279D #A535CD #BB66D9

Accessibility & contrast

On white

7.88
#7E279D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E279D
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E279D#FFFFFF#000000##FFFFFF
##7E279D1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#24549A
Tritanopia (blue-blind)
#7C4160
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e279d;
/* rgb */ color: rgb(126, 39, 157);
/* oklch */ color: oklch(46.1% 0.187 315.4);
Tailwind
colors: {
  custom: {
    50: '#a76abb',
    500: '#7e279d',
    950: '#000000',
  },
}
SCSS
$custom: #7e279d;
$custom-light: #a76abb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e279d",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 284.237,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46074,
    "c": 0.18712,
    "h": 315.4
  },
  "luminance": 0.08321
}

Semantic roles & 50–950 ramp

primary
#7E279D
secondary
#7ABF61
accent
#E3446E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E279D

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

Preview Lab → · Contrast checker → · Palette generator →

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