#7A279E#7A279E

#7A279E is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.6% C 0.187 H 313.3°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#7A279E
RGBrgb(122, 39, 158)
HSLhsl(282, 60%, 39%)
HSVhsv(282, 75%, 62%)
CMYKcmyk(22.8%, 75.3%, 0%, 38%)
CIE-LABlab(34.10, 53.77, -48.11)
CIE-LCHlch(34.10, 72.15, 318.18°)
OKLaboklab(45.59% 0.1279 -0.1359)
OKLCHoklch(45.59% 0.187 313.3)
XYZxyz(14.9220, 8.0577, 33.1104)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A279E #4B9E27
analogous
#3E279E #7A279E #9E2786
triadic
#7A279E #9E7A27 #279E7A
tetradic
#7A279E #9E3E27 #4B9E27 #27869E
square
#7A279E #9E3E27 #4B9E27 #27869E
split-complementary
#7A279E #869E27 #279E3E
monochromatic
#2E0F3C #541B6D #7A279E #9F35CD #B666D9

Accessibility & contrast

On white

8.04
#7A279E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7A279E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A279E
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A279E#FFFFFF#000000##FFFFFF
##7A279E1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA1
Deuteranopia (green-blind)
#1B529B
Tritanopia (blue-blind)
#764261
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7a279e;
/* rgb */ color: rgb(122, 39, 158);
/* oklch */ color: oklch(45.6% 0.187 313.3);
Tailwind
colors: {
  custom: {
    50: '#a56abb',
    500: '#7a279e',
    950: '#000000',
  },
}
SCSS
$custom: #7a279e;
$custom-light: #a56abb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a279e",
  "rgb": {
    "r": 122,
    "g": 39,
    "b": 158
  },
  "hsl": {
    "h": 281.849,
    "s": 60.406,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45588,
    "c": 0.18664,
    "h": 313.3
  },
  "luminance": 0.08057
}

Semantic roles & 50–950 ramp

primary
#7A279E
secondary
#7EBF62
accent
#E44474
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A279E

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

Preview Lab → · Contrast checker → · Palette generator →

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