#7A279F#7A279F

#7A279F is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.7% C 0.188 H 312.9°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#7A279F
RGBrgb(122, 39, 159)
HSLhsl(282, 61%, 39%)
HSVhsv(282, 75%, 62%)
CMYKcmyk(23.3%, 75.5%, 0%, 37.6%)
CIE-LABlab(34.17, 53.98, -48.60)
CIE-LCHlch(34.17, 72.64, 318.00°)
OKLaboklab(45.66% 0.1277 -0.1374)
OKLCHoklch(45.66% 0.188 312.9)
XYZxyz(15.0084, 8.0923, 33.5655)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A279F #4C9F27
analogous
#3E279F #7A279F #9F2788
triadic
#7A279F #9F7A27 #279F7A
tetradic
#7A279F #9F3E27 #4C9F27 #27889F
square
#7A279F #9F3E27 #4C9F27 #27889F
split-complementary
#7A279F #889F27 #279F3E
monochromatic
#2F0F3D #541B6E #7A279F #9F36CE #B667DA

Accessibility & contrast

On white

8.02
#7A279F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7A279F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A279F
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A279F#FFFFFF#000000##FFFFFF
##7A279F1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA2
Deuteranopia (green-blind)
#19529C
Tritanopia (blue-blind)
#764261
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7a279f;
/* rgb */ color: rgb(122, 39, 159);
/* oklch */ color: oklch(45.7% 0.188 312.9);
Tailwind
colors: {
  custom: {
    50: '#a56abc',
    500: '#7a279f',
    950: '#000000',
  },
}
SCSS
$custom: #7a279f;
$custom-light: #a56abc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a279f",
  "rgb": {
    "r": 122,
    "g": 39,
    "b": 159
  },
  "hsl": {
    "h": 281.5,
    "s": 60.606,
    "l": 38.824
  },
  "oklch": {
    "l": 0.45662,
    "c": 0.18758,
    "h": 312.9
  },
  "luminance": 0.08092
}

Semantic roles & 50–950 ramp

primary
#7A279F
secondary
#7FC062
accent
#E44475
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A279F

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

Preview Lab → · Contrast checker → · Palette generator →

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