#7D2B97#7D2B97

#7D2B97 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.9% C 0.176 H 316.8°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#7D2B97
RGBrgb(125, 43, 151)
HSLhsl(286, 56%, 38%)
HSVhsv(286, 72%, 59%)
CMYKcmyk(17.2%, 71.5%, 0%, 40.8%)
CIE-LABlab(34.65, 51.34, -42.96)
CIE-LCHlch(34.65, 66.94, 320.08°)
OKLaboklab(45.92% 0.1286 -0.1207)
OKLCHoklch(45.92% 0.176 316.8)
XYZxyz(14.9064, 8.3227, 30.0934)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2B97 #45972B
analogous
#472B97 #7D2B97 #972B7B
triadic
#7D2B97 #977D2B #2B977D
tetradic
#7D2B97 #97472B #45972B #2B7B97
square
#7D2B97 #97472B #45972B #2B7B97
split-complementary
#7D2B97 #7B972B #2B9747
monochromatic
#2E1038 #561D67 #7D2B97 #A439C7 #BA68D4

Accessibility & contrast

On white

7.88
#7D2B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7D2B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2B97
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2B97#FFFFFF#000000##FFFFFF
##7D2B971.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#2C5495
Tritanopia (blue-blind)
#7C415E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d2b97;
/* rgb */ color: rgb(125, 43, 151);
/* oklch */ color: oklch(45.9% 0.176 316.8);
Tailwind
colors: {
  custom: {
    50: '#a66cb6',
    500: '#7d2b97',
    950: '#000000',
  },
}
SCSS
$custom: #7d2b97;
$custom-light: #a66cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2b97",
  "rgb": {
    "r": 125,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 285.556,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45915,
    "c": 0.17636,
    "h": 316.8
  },
  "luminance": 0.08322
}

Semantic roles & 50–950 ramp

primary
#7D2B97
secondary
#78BB63
accent
#DF496D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2B97

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

Preview Lab → · Contrast checker → · Palette generator →

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