#7D2F8A#7D2F8A

#7D2F8A is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.5% C 0.159 H 321.7°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#7D2F8A
RGBrgb(125, 47, 138)
HSLhsl(291, 49%, 36%)
HSVhsv(291, 66%, 54%)
CMYKcmyk(9.4%, 65.9%, 0%, 45.9%)
CIE-LABlab(34.45, 46.96, -35.29)
CIE-LCHlch(34.45, 58.75, 323.07°)
OKLaboklab(45.52% 0.1244 -0.0984)
OKLCHoklch(45.52% 0.159 321.7)
XYZxyz(14.0609, 8.2287, 24.8875)
Luminance0.0823 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2F8A #3C8A2F
analogous
#502F8A #7D2F8A #8A2F6A
triadic
#7D2F8A #8A7D2F #2F8A7D
tetradic
#7D2F8A #8A502F #3C8A2F #2F6A8A
square
#7D2F8A #8A502F #3C8A2F #2F6A8A
split-complementary
#7D2F8A #6A8A2F #2F8A50
monochromatic
#2A102F #541F5C #7D2F8A #A63FB8 #BD68CC

Accessibility & contrast

On white

7.94
#7D2F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7D2F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2F8A
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2F8A#FFFFFF#000000##FFFFFF
##7D2F8A1.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184B8D
Deuteranopia (green-blind)
#3A5488
Tritanopia (blue-blind)
#7E3E58
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d2f8a;
/* rgb */ color: rgb(125, 47, 138);
/* oklch */ color: oklch(45.5% 0.159 321.7);
Tailwind
colors: {
  custom: {
    50: '#a56eac',
    500: '#7d2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #7d2f8a;
$custom-light: #a56eac;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2f8a",
  "rgb": {
    "r": 125,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 291.429,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45516,
    "c": 0.15862,
    "h": 321.7
  },
  "luminance": 0.08228
}

Semantic roles & 50–950 ramp

primary
#7D2F8A
secondary
#6EB362
accent
#D94F63
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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