#7F279D#7F279D

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

Color values

HEX#7F279D
RGBrgb(127, 39, 157)
HSLhsl(285, 60%, 38%)
HSVhsv(285, 75%, 62%)
CMYKcmyk(19.1%, 75.2%, 0%, 38.4%)
CIE-LABlab(34.80, 54.58, -46.34)
CIE-LCHlch(34.80, 71.60, 319.67°)
OKLaboklab(46.22% 0.1346 -0.1306)
OKLCHoklch(46.22% 0.187 315.9)
XYZxyz(15.5628, 8.3980, 32.6929)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F279D #459D27
analogous
#44279D #7F279D #9D2780
triadic
#7F279D #9D7F27 #279D7F
tetradic
#7F279D #9D4427 #459D27 #27809D
square
#7F279D #9D4427 #459D27 #27809D
split-complementary
#7F279D #809D27 #279D44
monochromatic
#300F3B #571B6C #7F279D #A635CD #BC66D9

Accessibility & contrast

On white

7.84
#7F279D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7F279D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F279D
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F279D#FFFFFF#000000##FFFFFF
##7F279D1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#25549A
Tritanopia (blue-blind)
#7D4060
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f279d;
/* rgb */ color: rgb(127, 39, 157);
/* oklch */ color: oklch(46.2% 0.187 315.9);
Tailwind
colors: {
  custom: {
    50: '#a86bbb',
    500: '#7f279d',
    950: '#000000',
  },
}
SCSS
$custom: #7f279d;
$custom-light: #a86bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f279d",
  "rgb": {
    "r": 127,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 284.746,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46215,
    "c": 0.18748,
    "h": 315.9
  },
  "luminance": 0.08397
}

Semantic roles & 50–950 ramp

primary
#7F279D
secondary
#79BF61
accent
#E3446D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F279D

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

Preview Lab → · Contrast checker → · Palette generator →

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