#7B27AC#7B27AC

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

Color values

HEX#7B27AC
RGBrgb(123, 39, 172)
HSLhsl(278, 63%, 41%)
HSVhsv(278, 77%, 67%)
CMYKcmyk(28.5%, 77.3%, 0%, 32.5%)
CIE-LABlab(35.28, 56.96, -54.62)
CIE-LCHlch(35.28, 78.92, 316.21°)
OKLaboklab(46.78% 0.1267 -0.155)
OKLCHoklch(46.78% 0.2 309.3)
XYZxyz(16.3388, 8.6409, 39.8289)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B27AC #58AC27
analogous
#3927AC #7B27AC #AC279B
triadic
#7B27AC #AC7B27 #27AC7B
tetradic
#7B27AC #AC3927 #58AC27 #279BAC
square
#7B27AC #AC3927 #58AC27 #279BAC
split-complementary
#7B27AC #9BAC27 #27AC39
monochromatic
#341048 #571C7A #7B27AC #9C3DD3 #B56FDE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B27AC#FFFFFF#000000##FFFFFF
##7B27AC1.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)
#0050B0
Deuteranopia (green-blind)
#0054A9
Tritanopia (blue-blind)
#744869
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b27ac;
/* rgb */ color: rgb(123, 39, 172);
/* oklch */ color: oklch(46.8% 0.200 309.3);
Tailwind
colors: {
  custom: {
    50: '#a66bc6',
    500: '#7b27ac',
    950: '#000000',
  },
}
SCSS
$custom: #7b27ac;
$custom-light: #a66bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b27ac",
  "rgb": {
    "r": 123,
    "g": 39,
    "b": 172
  },
  "hsl": {
    "h": 277.895,
    "s": 63.033,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46777,
    "c": 0.20019,
    "h": 309.3
  },
  "luminance": 0.08641
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B27AC

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

Preview Lab → · Contrast checker → · Palette generator →

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