#7D27B4#7D27B4

#7D27B4 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.7% C 0.208 H 307.8°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#7D27B4
RGBrgb(125, 39, 180)
HSLhsl(277, 64%, 43%)
HSVhsv(277, 78%, 71%)
CMYKcmyk(30.6%, 78.3%, 0%, 29.4%)
CIE-LABlab(36.19, 59.06, -57.90)
CIE-LCHlch(36.19, 82.70, 315.57°)
OKLaboklab(47.67% 0.1277 -0.1646)
OKLCHoklch(47.67% 0.208 307.8)
XYZxyz(17.4194, 9.1066, 44.0112)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D27B4 #5EB427
analogous
#3727B4 #7D27B4 #B427A4
triadic
#7D27B4 #B47D27 #27B47D
tetradic
#7D27B4 #B43727 #5EB427 #27A4B4
square
#7D27B4 #B43727 #5EB427 #27A4B4
split-complementary
#7D27B4 #A4B427 #27B437
monochromatic
#37114F #5A1C82 #7D27B4 #9C42D6 #B774E1

Accessibility & contrast

On white

7.44
#7D27B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7D27B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D27B4
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D27B4#FFFFFF#000000##FFFFFF
##7D27B41.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#0056B1
Tritanopia (blue-blind)
#744B6D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7d27b4;
/* rgb */ color: rgb(125, 39, 180);
/* oklch */ color: oklch(47.7% 0.208 307.8);
Tailwind
colors: {
  custom: {
    50: '#a86bcb',
    500: '#7d27b4',
    950: '#000000',
  },
}
SCSS
$custom: #7d27b4;
$custom-light: #a86bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d27b4",
  "rgb": {
    "r": 125,
    "g": 39,
    "b": 180
  },
  "hsl": {
    "h": 276.596,
    "s": 64.384,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47665,
    "c": 0.20827,
    "h": 307.8
  },
  "luminance": 0.09106
}

Semantic roles & 50–950 ramp

primary
#7D27B4
secondary
#92C86F
accent
#E74082
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D27B4

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

Preview Lab → · Contrast checker → · Palette generator →

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