#7F279A#7F279A

#7F279A is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.0% C 0.185 H 316.9°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#7F279A
RGBrgb(127, 39, 154)
HSLhsl(286, 60%, 38%)
HSVhsv(286, 75%, 60%)
CMYKcmyk(17.5%, 74.7%, 0%, 39.6%)
CIE-LABlab(34.59, 53.97, -44.85)
CIE-LCHlch(34.59, 70.18, 320.27°)
OKLaboklab(46% 0.1349 -0.1262)
OKLCHoklch(46% 0.185 316.9)
XYZxyz(15.3098, 8.2968, 31.3606)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F279A #429A27
analogous
#45279A #7F279A #9A277B
triadic
#7F279A #9A7F27 #279A7F
tetradic
#7F279A #9A4527 #429A27 #277B9A
square
#7F279A #9A4527 #429A27 #277B9A
split-complementary
#7F279A #7B9A27 #279A45
monochromatic
#2E0E38 #571B69 #7F279A #A733CB #BC64D8

Accessibility & contrast

On white

7.90
#7F279A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7F279A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F279A
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F279A#FFFFFF#000000##FFFFFF
##7F279A1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9D
Deuteranopia (green-blind)
#295497
Tritanopia (blue-blind)
#7E3F5F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f279a;
/* rgb */ color: rgb(127, 39, 154);
/* oklch */ color: oklch(46.0% 0.185 316.9);
Tailwind
colors: {
  custom: {
    50: '#a86ab8',
    500: '#7f279a',
    950: '#000000',
  },
}
SCSS
$custom: #7f279a;
$custom-light: #a86ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f279a",
  "rgb": {
    "r": 127,
    "g": 39,
    "b": 154
  },
  "hsl": {
    "h": 285.913,
    "s": 59.585,
    "l": 37.843
  },
  "oklch": {
    "l": 0.46004,
    "c": 0.18474,
    "h": 316.9
  },
  "luminance": 0.08296
}

Semantic roles & 50–950 ramp

primary
#7F279A
secondary
#75BD5F
accent
#E3456A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F279A

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

Preview Lab → · Contrast checker → · Palette generator →

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