#7A279D#7A279D

#7A279D is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.5% C 0.186 H 313.6°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#7A279D
RGBrgb(122, 39, 157)
HSLhsl(282, 60%, 38%)
HSVhsv(282, 75%, 62%)
CMYKcmyk(22.3%, 75.2%, 0%, 38.4%)
CIE-LABlab(34.03, 53.56, -47.62)
CIE-LCHlch(34.03, 71.67, 318.36°)
OKLaboklab(45.52% 0.1281 -0.1345)
OKLCHoklch(45.52% 0.186 313.6)
XYZxyz(14.8363, 8.0234, 32.6589)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A279D #4A9D27
analogous
#3F279D #7A279D #9D2785
triadic
#7A279D #9D7A27 #279D7A
tetradic
#7A279D #9D3F27 #4A9D27 #27859D
square
#7A279D #9D3F27 #4A9D27 #27859D
split-complementary
#7A279D #859D27 #279D3F
monochromatic
#2E0F3B #541B6C #7A279D #A035CD #B766D9

Accessibility & contrast

On white

8.06
#7A279D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A279D
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A279D#FFFFFF#000000##FFFFFF
##7A279D1.008.062.608.06
#FFFFFF8.061.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA0
Deuteranopia (green-blind)
#1D529A
Tritanopia (blue-blind)
#764160
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7a279d;
/* rgb */ color: rgb(122, 39, 157);
/* oklch */ color: oklch(45.5% 0.186 313.6);
Tailwind
colors: {
  custom: {
    50: '#a46abb',
    500: '#7a279d',
    950: '#000000',
  },
}
SCSS
$custom: #7a279d;
$custom-light: #a46abb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a279d",
  "rgb": {
    "r": 122,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 282.203,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45515,
    "c": 0.18569,
    "h": 313.6
  },
  "luminance": 0.08023
}

Semantic roles & 50–950 ramp

primary
#7A279D
secondary
#7DBF61
accent
#E34474
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A279D

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

Preview Lab → · Contrast checker → · Palette generator →

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