#7F27AC#7F27AC

#7F27AC is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.3% C 0.201 H 311.0°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#7F27AC
RGBrgb(127, 39, 172)
HSLhsl(280, 63%, 41%)
HSVhsv(280, 77%, 67%)
CMYKcmyk(26.2%, 77.3%, 0%, 32.5%)
CIE-LABlab(35.87, 57.70, -53.63)
CIE-LCHlch(35.87, 78.78, 317.09°)
OKLaboklab(47.31% 0.1321 -0.152)
OKLCHoklch(47.31% 0.201 311)
XYZxyz(16.9229, 8.9420, 39.8562)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F27AC #54AC27
analogous
#3D27AC #7F27AC #AC2797
triadic
#7F27AC #AC7F27 #27AC7F
tetradic
#7F27AC #AC3D27 #54AC27 #2797AC
square
#7F27AC #AC3D27 #54AC27 #2797AC
split-complementary
#7F27AC #97AC27 #27AC3D
monochromatic
#351048 #5A1C7A #7F27AC #A03DD3 #B96FDE

Accessibility & contrast

On white

7.53
#7F27AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7F27AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F27AC
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F27AC#FFFFFF#000000##FFFFFF
##7F27AC1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B0
Deuteranopia (green-blind)
#0556A9
Tritanopia (blue-blind)
#794769
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f27ac;
/* rgb */ color: rgb(127, 39, 172);
/* oklch */ color: oklch(47.3% 0.201 311.0);
Tailwind
colors: {
  custom: {
    50: '#a96bc6',
    500: '#7f27ac',
    950: '#000000',
  },
}
SCSS
$custom: #7f27ac;
$custom-light: #a96bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f27ac",
  "rgb": {
    "r": 127,
    "g": 39,
    "b": 172
  },
  "hsl": {
    "h": 279.699,
    "s": 63.033,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47313,
    "c": 0.20136,
    "h": 311
  },
  "luminance": 0.08942
}

Semantic roles & 50–950 ramp

primary
#7F27AC
secondary
#89C56A
accent
#E64279
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F27AC

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

Preview Lab → · Contrast checker → · Palette generator →

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