#7D27B6#7D27B6

#7D27B6 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.8% C 0.210 H 307.2°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#7D27B6
RGBrgb(125, 39, 182)
HSLhsl(276, 65%, 43%)
HSVhsv(276, 79%, 71%)
CMYKcmyk(31.3%, 78.6%, 0%, 28.6%)
CIE-LABlab(36.34, 59.50, -58.83)
CIE-LCHlch(36.34, 83.67, 315.32°)
OKLaboklab(47.82% 0.1272 -0.1673)
OKLCHoklch(47.82% 0.21 307.2)
XYZxyz(17.6246, 9.1886, 45.0920)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D27B6 #60B627
analogous
#3527B6 #7D27B6 #B627A7
triadic
#7D27B6 #B67D27 #27B67D
tetradic
#7D27B6 #B63527 #60B627 #27A7B6
square
#7D27B6 #B63527 #60B627 #27A7B6
split-complementary
#7D27B6 #A7B627 #27B635
monochromatic
#381151 #5A1C84 #7D27B6 #9C43D7 #B776E2

Accessibility & contrast

On white

7.40
#7D27B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7D27B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D27B6
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D27B6#FFFFFF#000000##FFFFFF
##7D27B61.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BA
Deuteranopia (green-blind)
#0056B3
Tritanopia (blue-blind)
#734C6E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7d27b6;
/* rgb */ color: rgb(125, 39, 182);
/* oklch */ color: oklch(47.8% 0.210 307.2);
Tailwind
colors: {
  custom: {
    50: '#a86bcd',
    500: '#7d27b6',
    950: '#000000',
  },
}
SCSS
$custom: #7d27b6;
$custom-light: #a86bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7d27b6",
  "rgb": {
    "r": 125,
    "g": 39,
    "b": 182
  },
  "hsl": {
    "h": 276.084,
    "s": 64.706,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47823,
    "c": 0.21016,
    "h": 307.2
  },
  "luminance": 0.09188
}

Semantic roles & 50–950 ramp

primary
#7D27B6
secondary
#93C970
accent
#E84083
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7D27B6

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

Preview Lab → · Contrast checker → · Palette generator →

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