#7F27AB#7F27AB

#7F27AB is a mid, highly saturated purple. Relative luminance 0.089; OKLCH L 47.2% C 0.200 H 311.3°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#7F27AB
RGBrgb(127, 39, 171)
HSLhsl(280, 63%, 41%)
HSVhsv(280, 77%, 67%)
CMYKcmyk(25.7%, 77.2%, 0%, 32.9%)
CIE-LABlab(35.80, 57.49, -53.15)
CIE-LCHlch(35.80, 78.29, 317.24°)
OKLaboklab(47.24% 0.1323 -0.1506)
OKLCHoklch(47.24% 0.2 311.3)
XYZxyz(16.8272, 8.9038, 39.3524)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F27AB #53AB27
analogous
#3D27AB #7F27AB #AB2795
triadic
#7F27AB #AB7F27 #27AB7F
tetradic
#7F27AB #AB3D27 #53AB27 #2795AB
square
#7F27AB #AB3D27 #53AB27 #2795AB
split-complementary
#7F27AB #95AB27 #27AB3D
monochromatic
#351047 #5A1C79 #7F27AB #A13DD3 #B96EDE

Accessibility & contrast

On white

7.55
#7F27AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7F27AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F27AB
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F27AB#FFFFFF#000000##FFFFFF
##7F27AB1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#0956A8
Tritanopia (blue-blind)
#794768
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f27ab;
/* rgb */ color: rgb(127, 39, 171);
/* oklch */ color: oklch(47.2% 0.200 311.3);
Tailwind
colors: {
  custom: {
    50: '#a96bc5',
    500: '#7f27ab',
    950: '#000000',
  },
}
SCSS
$custom: #7f27ab;
$custom-light: #a96bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f27ab",
  "rgb": {
    "r": 127,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 280,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47237,
    "c": 0.20042,
    "h": 311.3
  },
  "luminance": 0.08903
}

Semantic roles & 50–950 ramp

primary
#7F27AB
secondary
#88C569
accent
#E64279
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F27AB

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

Preview Lab → · Contrast checker → · Palette generator →

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