#7F279B#7F279B

#7F279B is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.1% C 0.186 H 316.6°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#7F279B
RGBrgb(127, 39, 155)
HSLhsl(286, 60%, 38%)
HSVhsv(286, 75%, 61%)
CMYKcmyk(18.1%, 74.8%, 0%, 39.2%)
CIE-LABlab(34.66, 54.17, -45.35)
CIE-LCHlch(34.66, 70.65, 320.07°)
OKLaboklab(46.07% 0.1348 -0.1277)
OKLCHoklch(46.07% 0.186 316.6)
XYZxyz(15.3934, 8.3303, 31.8010)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F279B #439B27
analogous
#45279B #7F279B #9B277D
triadic
#7F279B #9B7F27 #279B7F
tetradic
#7F279B #9B4527 #439B27 #277D9B
square
#7F279B #9B4527 #439B27 #277D9B
split-complementary
#7F279B #7D9B27 #279B45
monochromatic
#2F0E39 #571B6A #7F279B #A733CC #BC64D8

Accessibility & contrast

On white

7.88
#7F279B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7F279B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F279B
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F279B#FFFFFF#000000##FFFFFF
##7F279B1.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9E
Deuteranopia (green-blind)
#275498
Tritanopia (blue-blind)
#7D405F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f279b;
/* rgb */ color: rgb(127, 39, 155);
/* oklch */ color: oklch(46.1% 0.186 316.6);
Tailwind
colors: {
  custom: {
    50: '#a86ab9',
    500: '#7f279b',
    950: '#000000',
  },
}
SCSS
$custom: #7f279b;
$custom-light: #a86ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f279b",
  "rgb": {
    "r": 127,
    "g": 39,
    "b": 155
  },
  "hsl": {
    "h": 285.517,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.46074,
    "c": 0.18565,
    "h": 316.6
  },
  "luminance": 0.0833
}

Semantic roles & 50–950 ramp

primary
#7F279B
secondary
#77BE60
accent
#E3456B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F279B

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

Preview Lab → · Contrast checker → · Palette generator →

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