#7F27A9#7F27A9

#7F27A9 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 47.1% C 0.199 H 311.9°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#7F27A9
RGBrgb(127, 39, 169)
HSLhsl(281, 63%, 41%)
HSVhsv(281, 77%, 66%)
CMYKcmyk(24.9%, 76.9%, 0%, 33.7%)
CIE-LABlab(35.65, 57.06, -52.20)
CIE-LCHlch(35.65, 77.34, 317.55°)
OKLaboklab(47.09% 0.1327 -0.1477)
OKLCHoklch(47.09% 0.199 311.9)
XYZxyz(16.6380, 8.8281, 38.3560)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F27A9 #51A927
analogous
#3E27A9 #7F27A9 #A92792
triadic
#7F27A9 #A97F27 #27A97F
tetradic
#7F27A9 #A93E27 #51A927 #2792A9
square
#7F27A9 #A93E27 #51A927 #2792A9
split-complementary
#7F27A9 #92A927 #27A93E
monochromatic
#341046 #5A1C77 #7F27A9 #A13BD2 #B96DDD

Accessibility & contrast

On white

7.59
#7F27A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7F27A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F27A9
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F27A9#FFFFFF#000000##FFFFFF
##7F27A91.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AD
Deuteranopia (green-blind)
#0F55A6
Tritanopia (blue-blind)
#7A4667
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f27a9;
/* rgb */ color: rgb(127, 39, 169);
/* oklch */ color: oklch(47.1% 0.199 311.9);
Tailwind
colors: {
  custom: {
    50: '#a96bc3',
    500: '#7f27a9',
    950: '#000000',
  },
}
SCSS
$custom: #7f27a9;
$custom-light: #a96bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f27a9",
  "rgb": {
    "r": 127,
    "g": 39,
    "b": 169
  },
  "hsl": {
    "h": 280.615,
    "s": 62.5,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47087,
    "c": 0.19857,
    "h": 311.9
  },
  "luminance": 0.08828
}

Semantic roles & 50–950 ramp

primary
#7F27A9
secondary
#86C468
accent
#E64277
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F27A9

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

Preview Lab → · Contrast checker → · Palette generator →

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