#7F279C#7F279C

#7F279C is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.1% C 0.187 H 316.2°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#7F279C
RGBrgb(127, 39, 156)
HSLhsl(285, 60%, 38%)
HSVhsv(285, 75%, 61%)
CMYKcmyk(18.6%, 75%, 0%, 38.8%)
CIE-LABlab(34.73, 54.38, -45.85)
CIE-LCHlch(34.73, 71.12, 319.87°)
OKLaboklab(46.14% 0.1347 -0.1291)
OKLCHoklch(46.14% 0.187 316.2)
XYZxyz(15.4777, 8.3640, 32.2452)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F279C #449C27
analogous
#44279C #7F279C #9C277E
triadic
#7F279C #9C7F27 #279C7F
tetradic
#7F279C #9C4427 #449C27 #277E9C
square
#7F279C #9C4427 #449C27 #277E9C
split-complementary
#7F279C #7E9C27 #279C44
monochromatic
#2F0F3A #571B6B #7F279C #A634CC #BC65D8

Accessibility & contrast

On white

7.86
#7F279C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F279C
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F279C#FFFFFF#000000##FFFFFF
##7F279C1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9F
Deuteranopia (green-blind)
#265499
Tritanopia (blue-blind)
#7D4060
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f279c;
/* rgb */ color: rgb(127, 39, 156);
/* oklch */ color: oklch(46.1% 0.187 316.2);
Tailwind
colors: {
  custom: {
    50: '#a86bba',
    500: '#7f279c',
    950: '#000000',
  },
}
SCSS
$custom: #7f279c;
$custom-light: #a86bba;
$custom-dark: #000000;
JSON
{
  "hex": "#7f279c",
  "rgb": {
    "r": 127,
    "g": 39,
    "b": 156
  },
  "hsl": {
    "h": 285.128,
    "s": 60,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46144,
    "c": 0.18657,
    "h": 316.2
  },
  "luminance": 0.08363
}

Semantic roles & 50–950 ramp

primary
#7F279C
secondary
#78BE61
accent
#E3456C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F279C

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

Preview Lab → · Contrast checker → · Palette generator →

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