#7C27B2#7C27B2

#7C27B2 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.4% C 0.206 H 307.9°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#7C27B2
RGBrgb(124, 39, 178)
HSLhsl(277, 64%, 43%)
HSVhsv(277, 78%, 70%)
CMYKcmyk(30.3%, 78.1%, 0%, 30.2%)
CIE-LABlab(35.89, 58.45, -57.20)
CIE-LCHlch(35.89, 81.78, 315.62°)
OKLaboklab(47.38% 0.1267 -0.1626)
OKLCHoklch(47.38% 0.206 307.9)
XYZxyz(17.0719, 8.9507, 42.9392)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C27B2 #5DB227
analogous
#3727B2 #7C27B2 #B227A2
triadic
#7C27B2 #B27C27 #27B27C
tetradic
#7C27B2 #B23727 #5DB227 #27A2B2
square
#7C27B2 #B23727 #5DB227 #27A2B2
split-complementary
#7C27B2 #A2B227 #27B237
monochromatic
#36114E #591C80 #7C27B2 #9C41D5 #B673E0

Accessibility & contrast

On white

7.53
#7C27B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7C27B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C27B2
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C27B2#FFFFFF#000000##FFFFFF
##7C27B21.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#0055AF
Tritanopia (blue-blind)
#734A6C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c27b2;
/* rgb */ color: rgb(124, 39, 178);
/* oklch */ color: oklch(47.4% 0.206 307.9);
Tailwind
colors: {
  custom: {
    50: '#a76bca',
    500: '#7c27b2',
    950: '#000000',
  },
}
SCSS
$custom: #7c27b2;
$custom-light: #a76bca;
$custom-dark: #000000;
JSON
{
  "hex": "#7c27b2",
  "rgb": {
    "r": 124,
    "g": 39,
    "b": 178
  },
  "hsl": {
    "h": 276.691,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47377,
    "c": 0.20614,
    "h": 307.9
  },
  "luminance": 0.0895
}

Semantic roles & 50–950 ramp

primary
#7C27B2
secondary
#90C86D
accent
#E74181
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C27B2

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

Preview Lab → · Contrast checker → · Palette generator →

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