#7D2B8B#7D2B8B

#7D2B8B is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.1% C 0.165 H 321.5°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#7D2B8B
RGBrgb(125, 43, 139)
HSLhsl(291, 53%, 36%)
HSVhsv(291, 69%, 55%)
CMYKcmyk(10.1%, 69.1%, 0%, 45.5%)
CIE-LABlab(33.88, 48.92, -36.82)
CIE-LCHlch(33.88, 61.23, 323.03°)
OKLaboklab(45.12% 0.1292 -0.1028)
OKLCHoklch(45.12% 0.165 321.5)
XYZxyz(13.9810, 7.9525, 25.2197)
Luminance0.0795 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2B8B #398B2B
analogous
#4D2B8B #7D2B8B #8B2B69
triadic
#7D2B8B #8B7D2B #2B8B7D
tetradic
#7D2B8B #8B4D2B #398B2B #2B698B
square
#7D2B8B #8B4D2B #398B2B #2B698B
split-complementary
#7D2B8B #698B2B #2B8B4D
monochromatic
#290E2E #531D5C #7D2B8B #A739BA #BF62CE

Accessibility & contrast

On white

8.11
#7D2B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7D2B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2B8B
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2B8B#FFFFFF#000000##FFFFFF
##7D2B8B1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4A8E
Deuteranopia (green-blind)
#365389
Tritanopia (blue-blind)
#7E3C57
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7d2b8b;
/* rgb */ color: rgb(125, 43, 139);
/* oklch */ color: oklch(45.1% 0.165 321.5);
Tailwind
colors: {
  custom: {
    50: '#a66bad',
    500: '#7d2b8b',
    950: '#000000',
  },
}
SCSS
$custom: #7d2b8b;
$custom-light: #a66bad;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2b8b",
  "rgb": {
    "r": 125,
    "g": 43,
    "b": 139
  },
  "hsl": {
    "h": 291.25,
    "s": 52.747,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45124,
    "c": 0.16509,
    "h": 321.5
  },
  "luminance": 0.07952
}

Semantic roles & 50–950 ramp

primary
#7D2B8B
secondary
#6AB55D
accent
#DC4C61
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D2B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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