#7B27AA#7B27AA

#7B27AA is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.6% C 0.198 H 309.9°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#7B27AA
RGBrgb(123, 39, 170)
HSLhsl(278, 63%, 41%)
HSVhsv(278, 77%, 67%)
CMYKcmyk(27.6%, 77.1%, 0%, 33.3%)
CIE-LABlab(35.13, 56.53, -53.66)
CIE-LCHlch(35.13, 77.95, 316.49°)
OKLaboklab(46.62% 0.1271 -0.1522)
OKLCHoklch(46.62% 0.198 309.9)
XYZxyz(16.1482, 8.5646, 38.8249)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B27AA #56AA27
analogous
#3927AA #7B27AA #AA2797
triadic
#7B27AA #AA7B27 #27AA7B
tetradic
#7B27AA #AA3927 #56AA27 #2797AA
square
#7B27AA #AA3927 #56AA27 #2797AA
split-complementary
#7B27AA #97AA27 #27AA39
monochromatic
#331046 #571C78 #7B27AA #9C3CD2 #B66EDE

Accessibility & contrast

On white

7.74
#7B27AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7B27AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B27AA
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B27AA#FFFFFF#000000##FFFFFF
##7B27AA1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAE
Deuteranopia (green-blind)
#0054A7
Tritanopia (blue-blind)
#744768
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b27aa;
/* rgb */ color: rgb(123, 39, 170);
/* oklch */ color: oklch(46.6% 0.198 309.9);
Tailwind
colors: {
  custom: {
    50: '#a66bc4',
    500: '#7b27aa',
    950: '#000000',
  },
}
SCSS
$custom: #7b27aa;
$custom-light: #a66bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b27aa",
  "rgb": {
    "r": 123,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 278.473,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46623,
    "c": 0.1983,
    "h": 309.9
  },
  "luminance": 0.08564
}

Semantic roles & 50–950 ramp

primary
#7B27AA
secondary
#89C469
accent
#E6427D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B27AA

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

Preview Lab → · Contrast checker → · Palette generator →

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