#7F27BD#7F27BD

#7F27BD is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.6% C 0.217 H 306.2°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#7F27BD
RGBrgb(127, 39, 189)
HSLhsl(275, 66%, 45%)
HSVhsv(275, 79%, 74%)
CMYKcmyk(32.8%, 79.4%, 0%, 25.9%)
CIE-LABlab(37.18, 61.37, -61.58)
CIE-LCHlch(37.18, 86.94, 314.90°)
OKLaboklab(48.64% 0.1282 -0.1753)
OKLCHoklch(48.64% 0.217 306.2)
XYZxyz(18.6612, 9.6374, 49.0113)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F27BD #65BD27
analogous
#3427BD #7F27BD #BD27B0
triadic
#7F27BD #BD7F27 #27BD7F
tetradic
#7F27BD #BD3427 #65BD27 #27B0BD
square
#7F27BD #BD3427 #65BD27 #27B0BD
split-complementary
#7F27BD #B0BD27 #27BD34
monochromatic
#3B1258 #5D1D8A #7F27BD #9D48D9 #B87BE4

Accessibility & contrast

On white

7.17
#7F27BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7F27BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F27BD
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F27BD#FFFFFF#000000##FFFFFF
##7F27BD1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C1
Deuteranopia (green-blind)
#0058BA
Tritanopia (blue-blind)
#744F72
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f27bd;
/* rgb */ color: rgb(127, 39, 189);
/* oklch */ color: oklch(48.6% 0.217 306.2);
Tailwind
colors: {
  custom: {
    50: '#aa6cd2',
    500: '#7f27bd',
    950: '#000000',
  },
}
SCSS
$custom: #7f27bd;
$custom-light: #aa6cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f27bd",
  "rgb": {
    "r": 127,
    "g": 39,
    "b": 189
  },
  "hsl": {
    "h": 275.2,
    "s": 65.789,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48642,
    "c": 0.21721,
    "h": 306.2
  },
  "luminance": 0.09637
}

Semantic roles & 50–950 ramp

primary
#7F27BD
secondary
#98CC74
accent
#E93F85
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110714
muted
#807A83

Preview Lab

Preview with #7F27BD

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

Preview Lab → · Contrast checker → · Palette generator →

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