#7D1BA6#7D1BA6

#7D1BA6 is a mid, highly saturated purple. Relative luminance 0.079; OKLCH L 45.6% C 0.206 H 312.8°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#7D1BA6
RGBrgb(125, 27, 166)
HSLhsl(282, 72%, 38%)
HSVhsv(282, 84%, 65%)
CMYKcmyk(24.7%, 83.7%, 0%, 34.9%)
CIE-LABlab(33.77, 60.00, -53.46)
CIE-LCHlch(33.77, 80.36, 318.30°)
OKLaboklab(45.63% 0.1401 -0.1515)
OKLCHoklch(45.63% 0.206 312.8)
XYZxyz(15.7311, 7.8975, 36.7647)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1BA6 #44A61B
analogous
#371BA6 #7D1BA6 #A61B8A
triadic
#7D1BA6 #A67D1B #1BA67D
tetradic
#7D1BA6 #A6371B #44A61B #1B8AA6
square
#7D1BA6 #A6371B #44A61B #1B8AA6
split-complementary
#7D1BA6 #8AA61B #1BA637
monochromatic
#2E0A3D #551271 #7D1BA6 #A524DB #BA58E4

Accessibility & contrast

On white

8.14
#7D1BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7D1BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1BA6
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1BA6#FFFFFF#000000##FFFFFF
##7D1BA61.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAA
Deuteranopia (green-blind)
#0051A3
Tritanopia (blue-blind)
#783F63
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d1ba6;
/* rgb */ color: rgb(125, 27, 166);
/* oklch */ color: oklch(45.6% 0.206 312.8);
Tailwind
colors: {
  custom: {
    50: '#a866c1',
    500: '#7d1ba6',
    950: '#000000',
  },
}
SCSS
$custom: #7d1ba6;
$custom-light: #a866c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1ba6",
  "rgb": {
    "r": 125,
    "g": 27,
    "b": 166
  },
  "hsl": {
    "h": 282.302,
    "s": 72.021,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45634,
    "c": 0.20633,
    "h": 312.8
  },
  "luminance": 0.07897
}

Semantic roles & 50–950 ramp

primary
#7D1BA6
secondary
#77C756
accent
#EF396F
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D1BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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