#7D27B8#7D27B8

#7D27B8 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.0% C 0.212 H 306.7°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#7D27B8
RGBrgb(125, 39, 184)
HSLhsl(276, 65%, 44%)
HSVhsv(276, 79%, 72%)
CMYKcmyk(32.1%, 78.8%, 0%, 27.8%)
CIE-LABlab(36.50, 59.94, -59.75)
CIE-LCHlch(36.50, 84.63, 315.09°)
OKLaboklab(47.98% 0.1267 -0.17)
OKLCHoklch(47.98% 0.212 306.7)
XYZxyz(17.8328, 9.2719, 46.1883)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D27B8 #62B827
analogous
#3427B8 #7D27B8 #B827AA
triadic
#7D27B8 #B87D27 #27B87D
tetradic
#7D27B8 #B83427 #62B827 #27AAB8
square
#7D27B8 #B83427 #62B827 #27AAB8
split-complementary
#7D27B8 #AAB827 #27B834
monochromatic
#381253 #5B1C86 #7D27B8 #9C45D8 #B777E2

Accessibility & contrast

On white

7.36
#7D27B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7D27B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D27B8
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D27B8#FFFFFF#000000##FFFFFF
##7D27B81.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BC
Deuteranopia (green-blind)
#0056B5
Tritanopia (blue-blind)
#734D70
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7d27b8;
/* rgb */ color: rgb(125, 39, 184);
/* oklch */ color: oklch(48.0% 0.212 306.7);
Tailwind
colors: {
  custom: {
    50: '#a86cce',
    500: '#7d27b8',
    950: '#000000',
  },
}
SCSS
$custom: #7d27b8;
$custom-light: #a86cce;
$custom-dark: #000000;
JSON
{
  "hex": "#7d27b8",
  "rgb": {
    "r": 125,
    "g": 39,
    "b": 184
  },
  "hsl": {
    "h": 275.586,
    "s": 65.022,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47983,
    "c": 0.21205,
    "h": 306.7
  },
  "luminance": 0.09272
}

Semantic roles & 50–950 ramp

primary
#7D27B8
secondary
#95CA71
accent
#E84084
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7D27B8

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

Preview Lab → · Contrast checker → · Palette generator →

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