#7A279C#7A279C

#7A279C is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.4% C 0.185 H 313.9°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#7A279C
RGBrgb(122, 39, 156)
HSLhsl(283, 60%, 38%)
HSVhsv(283, 75%, 61%)
CMYKcmyk(21.8%, 75%, 0%, 38.8%)
CIE-LABlab(33.96, 53.35, -47.12)
CIE-LCHlch(33.96, 71.18, 318.55°)
OKLaboklab(45.44% 0.1282 -0.133)
OKLCHoklch(45.44% 0.185 313.9)
XYZxyz(14.7513, 7.9894, 32.2111)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A279C #499C27
analogous
#3F279C #7A279C #9C2783
triadic
#7A279C #9C7A27 #279C7A
tetradic
#7A279C #9C3F27 #499C27 #27839C
square
#7A279C #9C3F27 #499C27 #27839C
split-complementary
#7A279C #839C27 #279C3F
monochromatic
#2D0F3A #541B6B #7A279C #A034CC #B765D8

Accessibility & contrast

On white

8.08
#7A279C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7A279C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A279C
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A279C#FFFFFF#000000##FFFFFF
##7A279C1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9F
Deuteranopia (green-blind)
#1E5299
Tritanopia (blue-blind)
#774160
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7a279c;
/* rgb */ color: rgb(122, 39, 156);
/* oklch */ color: oklch(45.4% 0.185 313.9);
Tailwind
colors: {
  custom: {
    50: '#a46aba',
    500: '#7a279c',
    950: '#000000',
  },
}
SCSS
$custom: #7a279c;
$custom-light: #a46aba;
$custom-dark: #000000;
JSON
{
  "hex": "#7a279c",
  "rgb": {
    "r": 122,
    "g": 39,
    "b": 156
  },
  "hsl": {
    "h": 282.564,
    "s": 60,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45443,
    "c": 0.18475,
    "h": 313.9
  },
  "luminance": 0.07989
}

Semantic roles & 50–950 ramp

primary
#7A279C
secondary
#7CBE61
accent
#E34573
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A279C

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

Preview Lab → · Contrast checker → · Palette generator →

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