#7D27AB#7D27AB

#7D27AB is a mid, vivid violet. Relative luminance 0.088; OKLCH L 47.0% C 0.200 H 310.4°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#7D27AB
RGBrgb(125, 39, 171)
HSLhsl(279, 63%, 41%)
HSVhsv(279, 77%, 67%)
CMYKcmyk(26.9%, 77.2%, 0%, 32.9%)
CIE-LABlab(35.50, 57.11, -53.65)
CIE-LCHlch(35.50, 78.36, 316.79°)
OKLaboklab(46.97% 0.1296 -0.1521)
OKLCHoklch(46.97% 0.2 310.4)
XYZxyz(16.5322, 8.7517, 39.3385)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D27AB #55AB27
analogous
#3B27AB #7D27AB #AB2797
triadic
#7D27AB #AB7D27 #27AB7D
tetradic
#7D27AB #AB3B27 #55AB27 #2797AB
square
#7D27AB #AB3B27 #55AB27 #2797AB
split-complementary
#7D27AB #97AB27 #27AB3B
monochromatic
#341047 #591C79 #7D27AB #9E3DD3 #B76EDE

Accessibility & contrast

On white

7.64
#7D27AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7D27AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D27AB
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D27AB#FFFFFF#000000##FFFFFF
##7D27AB1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#0055A8
Tritanopia (blue-blind)
#774768
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7d27ab;
/* rgb */ color: rgb(125, 39, 171);
/* oklch */ color: oklch(47.0% 0.200 310.4);
Tailwind
colors: {
  custom: {
    50: '#a76bc5',
    500: '#7d27ab',
    950: '#000000',
  },
}
SCSS
$custom: #7d27ab;
$custom-light: #a76bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d27ab",
  "rgb": {
    "r": 125,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 279.091,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46968,
    "c": 0.19983,
    "h": 310.4
  },
  "luminance": 0.08751
}

Semantic roles & 50–950 ramp

primary
#7D27AB
secondary
#89C569
accent
#E6427B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D27AB

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

Preview Lab → · Contrast checker → · Palette generator →

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