#7F27B8#7F27B8

#7F27B8 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.2% C 0.213 H 307.5°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#7F27B8
RGBrgb(127, 39, 184)
HSLhsl(276, 65%, 44%)
HSVhsv(276, 79%, 72%)
CMYKcmyk(31%, 78.8%, 0%, 27.8%)
CIE-LABlab(36.79, 60.27, -59.28)
CIE-LCHlch(36.79, 84.54, 315.48°)
OKLaboklab(48.24% 0.1295 -0.1686)
OKLCHoklch(48.24% 0.213 307.5)
XYZxyz(18.1278, 9.4240, 46.2021)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F27B8 #60B827
analogous
#3727B8 #7F27B8 #B827A8
triadic
#7F27B8 #B87F27 #27B87F
tetradic
#7F27B8 #B83727 #60B827 #27A8B8
square
#7F27B8 #B83727 #60B827 #27A8B8
split-complementary
#7F27B8 #A8B827 #27B837
monochromatic
#391253 #5C1C86 #7F27B8 #9E45D8 #B877E2

Accessibility & contrast

On white

7.28
#7F27B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7F27B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F27B8
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F27B8#FFFFFF#000000##FFFFFF
##7F27B81.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BC
Deuteranopia (green-blind)
#0057B5
Tritanopia (blue-blind)
#754C70
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f27b8;
/* rgb */ color: rgb(127, 39, 184);
/* oklch */ color: oklch(48.2% 0.213 307.5);
Tailwind
colors: {
  custom: {
    50: '#aa6cce',
    500: '#7f27b8',
    950: '#000000',
  },
}
SCSS
$custom: #7f27b8;
$custom-light: #aa6cce;
$custom-dark: #000000;
JSON
{
  "hex": "#7f27b8",
  "rgb": {
    "r": 127,
    "g": 39,
    "b": 184
  },
  "hsl": {
    "h": 276.414,
    "s": 65.022,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48242,
    "c": 0.21254,
    "h": 307.5
  },
  "luminance": 0.09424
}

Semantic roles & 50–950 ramp

primary
#7F27B8
secondary
#94CA71
accent
#E84082
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110714
muted
#807A82

Preview Lab

Preview with #7F27B8

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

Preview Lab → · Contrast checker → · Palette generator →

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