#7A27AE#7A27AE

#7A27AE is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.8% C 0.202 H 308.2°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#7A27AE
RGBrgb(122, 39, 174)
HSLhsl(277, 63%, 42%)
HSVhsv(277, 78%, 68%)
CMYKcmyk(29.9%, 77.6%, 0%, 31.8%)
CIE-LABlab(35.29, 57.22, -55.80)
CIE-LCHlch(35.29, 79.92, 315.72°)
OKLaboklab(46.8% 0.1249 -0.1585)
OKLCHoklch(46.8% 0.202 308.2)
XYZxyz(16.3899, 8.6449, 40.8414)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A27AE #5BAE27
analogous
#3727AE #7A27AE #AE279F
triadic
#7A27AE #AE7A27 #27AE7A
tetradic
#7A27AE #AE3727 #5BAE27 #279FAE
square
#7A27AE #AE3727 #5BAE27 #279FAE
split-complementary
#7A27AE #9FAE27 #27AE37
monochromatic
#34114A #571C7C #7A27AE #9A3ED4 #B470DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A27AE#FFFFFF#000000##FFFFFF
##7A27AE1.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)
#0050B2
Deuteranopia (green-blind)
#0054AB
Tritanopia (blue-blind)
#72496A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a27ae;
/* rgb */ color: rgb(122, 39, 174);
/* oklch */ color: oklch(46.8% 0.202 308.2);
Tailwind
colors: {
  custom: {
    50: '#a66bc7',
    500: '#7a27ae',
    950: '#000000',
  },
}
SCSS
$custom: #7a27ae;
$custom-light: #a66bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a27ae",
  "rgb": {
    "r": 122,
    "g": 39,
    "b": 174
  },
  "hsl": {
    "h": 276.889,
    "s": 63.38,
    "l": 41.765
  },
  "oklch": {
    "l": 0.468,
    "c": 0.20181,
    "h": 308.2
  },
  "luminance": 0.08645
}

Semantic roles & 50–950 ramp

primary
#7A27AE
secondary
#8EC66B
accent
#E64181
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A27AE

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

Preview Lab → · Contrast checker → · Palette generator →

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