#7F27A4#7F27A4

#7F27A4 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.7% C 0.194 H 313.5°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#7F27A4
RGBrgb(127, 39, 164)
HSLhsl(282, 62%, 40%)
HSVhsv(282, 76%, 64%)
CMYKcmyk(22.6%, 76.2%, 0%, 35.7%)
CIE-LABlab(35.29, 56.02, -49.78)
CIE-LCHlch(35.29, 74.94, 318.38°)
OKLaboklab(46.72% 0.1335 -0.1406)
OKLCHoklch(46.72% 0.194 313.5)
XYZxyz(16.1776, 8.6439, 35.9310)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F27A4 #4CA427
analogous
#4127A4 #7F27A4 #A4278B
triadic
#7F27A4 #A47F27 #27A47F
tetradic
#7F27A4 #A44127 #4CA427 #278BA4
square
#7F27A4 #A44127 #4CA427 #278BA4
split-complementary
#7F27A4 #8BA427 #27A441
monochromatic
#320F41 #591B73 #7F27A4 #A338D0 #BA6ADC

Accessibility & contrast

On white

7.70
#7F27A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7F27A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F27A4
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F27A4#FFFFFF#000000##FFFFFF
##7F27A41.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA7
Deuteranopia (green-blind)
#1B55A1
Tritanopia (blue-blind)
#7B4464
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f27a4;
/* rgb */ color: rgb(127, 39, 164);
/* oklch */ color: oklch(46.7% 0.194 313.5);
Tailwind
colors: {
  custom: {
    50: '#a86bc0',
    500: '#7f27a4',
    950: '#000000',
  },
}
SCSS
$custom: #7f27a4;
$custom-light: #a86bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f27a4",
  "rgb": {
    "r": 127,
    "g": 39,
    "b": 164
  },
  "hsl": {
    "h": 282.24,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46718,
    "c": 0.19393,
    "h": 313.5
  },
  "luminance": 0.08643
}

Semantic roles & 50–950 ramp

primary
#7F27A4
secondary
#80C265
accent
#E54373
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F27A4

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

Preview Lab → · Contrast checker → · Palette generator →

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