#7F27AA#7F27AA

#7F27AA is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.2% C 0.199 H 311.6°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#7F27AA
RGBrgb(127, 39, 170)
HSLhsl(280, 63%, 41%)
HSVhsv(280, 77%, 67%)
CMYKcmyk(25.3%, 77.1%, 0%, 33.3%)
CIE-LABlab(35.72, 57.28, -52.68)
CIE-LCHlch(35.72, 77.82, 317.40°)
OKLaboklab(47.16% 0.1325 -0.1492)
OKLCHoklch(47.16% 0.199 311.6)
XYZxyz(16.7323, 8.8658, 38.8523)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F27AA #52AA27
analogous
#3D27AA #7F27AA #AA2793
triadic
#7F27AA #AA7F27 #27AA7F
tetradic
#7F27AA #AA3D27 #52AA27 #2793AA
square
#7F27AA #AA3D27 #52AA27 #2793AA
split-complementary
#7F27AA #93AA27 #27AA3D
monochromatic
#351046 #5A1C78 #7F27AA #A13CD2 #B96EDE

Accessibility & contrast

On white

7.57
#7F27AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F27AA
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F27AA#FFFFFF#000000##FFFFFF
##7F27AA1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AE
Deuteranopia (green-blind)
#0C56A7
Tritanopia (blue-blind)
#7A4668
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f27aa;
/* rgb */ color: rgb(127, 39, 170);
/* oklch */ color: oklch(47.2% 0.199 311.6);
Tailwind
colors: {
  custom: {
    50: '#a96bc4',
    500: '#7f27aa',
    950: '#000000',
  },
}
SCSS
$custom: #7f27aa;
$custom-light: #a96bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f27aa",
  "rgb": {
    "r": 127,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 280.305,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47162,
    "c": 0.19949,
    "h": 311.6
  },
  "luminance": 0.08865
}

Semantic roles & 50–950 ramp

primary
#7F27AA
secondary
#87C469
accent
#E64278
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F27AA

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

Preview Lab → · Contrast checker → · Palette generator →

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