#7E279F#7E279F

#7E279F is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.2% C 0.189 H 314.7°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#7E279F
RGBrgb(126, 39, 159)
HSLhsl(284, 61%, 39%)
HSVhsv(284, 75%, 62%)
CMYKcmyk(20.8%, 75.5%, 0%, 37.6%)
CIE-LABlab(34.78, 54.79, -47.59)
CIE-LCHlch(34.78, 72.57, 319.02°)
OKLaboklab(46.22% 0.133 -0.1342)
OKLCHoklch(46.22% 0.189 314.7)
XYZxyz(15.5867, 8.3904, 33.5926)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E279F #489F27
analogous
#42279F #7E279F #9F2784
triadic
#7E279F #9F7E27 #279F7E
tetradic
#7E279F #9F4227 #489F27 #27849F
square
#7E279F #9F4227 #489F27 #27849F
split-complementary
#7E279F #849F27 #279F42
monochromatic
#300F3D #571B6E #7E279F #A436CE #BA67DA

Accessibility & contrast

On white

7.84
#7E279F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7E279F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E279F
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E279F#FFFFFF#000000##FFFFFF
##7E279F1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e279f;
/* rgb */ color: rgb(126, 39, 159);
/* oklch */ color: oklch(46.2% 0.189 314.7);
Tailwind
colors: {
  custom: {
    50: '#a76bbc',
    500: '#7e279f',
    950: '#000000',
  },
}
SCSS
$custom: #7e279f;
$custom-light: #a76bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e279f",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 159
  },
  "hsl": {
    "h": 283.5,
    "s": 60.606,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46217,
    "c": 0.18897,
    "h": 314.7
  },
  "luminance": 0.0839
}

Semantic roles & 50–950 ramp

primary
#7E279F
secondary
#7CC062
accent
#E44470
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E279F

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

Preview Lab → · Contrast checker → · Palette generator →

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