#7B27AB#7B27AB

#7B27AB is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.7% C 0.199 H 309.6°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#7B27AB
RGBrgb(123, 39, 171)
HSLhsl(278, 63%, 41%)
HSVhsv(278, 77%, 67%)
CMYKcmyk(28.1%, 77.2%, 0%, 32.9%)
CIE-LABlab(35.21, 56.75, -54.14)
CIE-LCHlch(35.21, 78.43, 316.35°)
OKLaboklab(46.7% 0.1269 -0.1536)
OKLCHoklch(46.7% 0.199 309.6)
XYZxyz(16.2431, 8.6026, 39.3250)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B27AB #57AB27
analogous
#3927AB #7B27AB #AB2799
triadic
#7B27AB #AB7B27 #27AB7B
tetradic
#7B27AB #AB3927 #57AB27 #2799AB
square
#7B27AB #AB3927 #57AB27 #2799AB
split-complementary
#7B27AB #99AB27 #27AB39
monochromatic
#331047 #571C79 #7B27AB #9C3DD3 #B56EDE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B27AB#FFFFFF#000000##FFFFFF
##7B27AB1.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)
#004FAF
Deuteranopia (green-blind)
#0054A8
Tritanopia (blue-blind)
#744768
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b27ab;
/* rgb */ color: rgb(123, 39, 171);
/* oklch */ color: oklch(46.7% 0.199 309.6);
Tailwind
colors: {
  custom: {
    50: '#a66bc5',
    500: '#7b27ab',
    950: '#000000',
  },
}
SCSS
$custom: #7b27ab;
$custom-light: #a66bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b27ab",
  "rgb": {
    "r": 123,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 278.182,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.467,
    "c": 0.19924,
    "h": 309.6
  },
  "luminance": 0.08602
}

Semantic roles & 50–950 ramp

primary
#7B27AB
secondary
#8AC569
accent
#E6427E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B27AB

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

Preview Lab → · Contrast checker → · Palette generator →

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