#7A27B3#7A27B3

#7A27B3 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.2% C 0.207 H 306.8°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#7A27B3
RGBrgb(122, 39, 179)
HSLhsl(276, 64%, 43%)
HSVhsv(276, 78%, 70%)
CMYKcmyk(31.8%, 78.2%, 0%, 29.8%)
CIE-LABlab(35.68, 58.32, -58.15)
CIE-LCHlch(35.68, 82.36, 315.09°)
OKLaboklab(47.2% 0.1237 -0.1654)
OKLCHoklch(47.2% 0.207 306.8)
XYZxyz(16.8865, 8.8435, 43.4565)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A27B3 #60B327
analogous
#3427B3 #7A27B3 #B327A6
triadic
#7A27B3 #B37A27 #27B37A
tetradic
#7A27B3 #B33427 #60B327 #27A6B3
square
#7A27B3 #B33427 #60B327 #27A6B3
split-complementary
#7A27B3 #A6B327 #27B334
monochromatic
#36114E #581C81 #7A27B3 #9941D6 #B474E1

Accessibility & contrast

On white

7.59
#7A27B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7A27B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A27B3
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A27B3#FFFFFF#000000##FFFFFF
##7A27B31.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B7
Deuteranopia (green-blind)
#0054B0
Tritanopia (blue-blind)
#704B6D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a27b3;
/* rgb */ color: rgb(122, 39, 179);
/* oklch */ color: oklch(47.2% 0.207 306.8);
Tailwind
colors: {
  custom: {
    50: '#a66bcb',
    500: '#7a27b3',
    950: '#000000',
  },
}
SCSS
$custom: #7a27b3;
$custom-light: #a66bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a27b3",
  "rgb": {
    "r": 122,
    "g": 39,
    "b": 179
  },
  "hsl": {
    "h": 275.571,
    "s": 64.22,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47196,
    "c": 0.20658,
    "h": 306.8
  },
  "luminance": 0.08843
}

Semantic roles & 50–950 ramp

primary
#7A27B3
secondary
#93C86E
accent
#E74184
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A27B3

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

Preview Lab → · Contrast checker → · Palette generator →

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