#7A27AD#7A27AD

#7A27AD is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.7% C 0.201 H 308.5°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#7A27AD
RGBrgb(122, 39, 173)
HSLhsl(277, 63%, 42%)
HSVhsv(277, 77%, 68%)
CMYKcmyk(29.5%, 77.5%, 0%, 32.2%)
CIE-LABlab(35.21, 57.00, -55.33)
CIE-LCHlch(35.21, 79.44, 315.85°)
OKLaboklab(46.72% 0.1251 -0.1571)
OKLCHoklch(46.72% 0.201 308.5)
XYZxyz(16.2928, 8.6060, 40.3299)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A27AD #5AAD27
analogous
#3727AD #7A27AD #AD279D
triadic
#7A27AD #AD7A27 #27AD7A
tetradic
#7A27AD #AD3727 #5AAD27 #279DAD
square
#7A27AD #AD3727 #5AAD27 #279DAD
split-complementary
#7A27AD #9DAD27 #27AD37
monochromatic
#341049 #571C7B #7A27AD #9A3ED3 #B470DF

Accessibility & contrast

On white

7.72
#7A27AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7A27AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A27AD
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A27AD#FFFFFF#000000##FFFFFF
##7A27AD1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B1
Deuteranopia (green-blind)
#0054AA
Tritanopia (blue-blind)
#724869
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a27ad;
/* rgb */ color: rgb(122, 39, 173);
/* oklch */ color: oklch(46.7% 0.201 308.5);
Tailwind
colors: {
  custom: {
    50: '#a56bc6',
    500: '#7a27ad',
    950: '#000000',
  },
}
SCSS
$custom: #7a27ad;
$custom-light: #a56bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a27ad",
  "rgb": {
    "r": 122,
    "g": 39,
    "b": 173
  },
  "hsl": {
    "h": 277.164,
    "s": 63.208,
    "l": 41.569
  },
  "oklch": {
    "l": 0.46722,
    "c": 0.20086,
    "h": 308.5
  },
  "luminance": 0.08606
}

Semantic roles & 50–950 ramp

primary
#7A27AD
secondary
#8DC66A
accent
#E64280
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A27AD

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

Preview Lab → · Contrast checker → · Palette generator →

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