#7D2F8E#7D2F8E

#7D2F8E is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.8% C 0.162 H 320.0°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#7D2F8E
RGBrgb(125, 47, 142)
HSLhsl(289, 50%, 37%)
HSVhsv(289, 67%, 56%)
CMYKcmyk(12%, 66.9%, 0%, 44.3%)
CIE-LABlab(34.69, 47.76, -37.37)
CIE-LCHlch(34.69, 60.65, 321.96°)
OKLaboklab(45.77% 0.1244 -0.1044)
OKLCHoklch(45.77% 0.162 320)
XYZxyz(14.3558, 8.3467, 26.4408)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2F8E #408E2F
analogous
#4D2F8E #7D2F8E #8E2F70
triadic
#7D2F8E #8E7D2F #2F8E7D
tetradic
#7D2F8E #8E4D2F #408E2F #2F708E
square
#7D2F8E #8E4D2F #408E2F #2F708E
split-complementary
#7D2F8E #708E2F #2F8E4D
monochromatic
#2C1132 #552060 #7D2F8E #A53EBC #BC6ACE

Accessibility & contrast

On white

7.87
#7D2F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7D2F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2F8E
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2F8E#FFFFFF#000000##FFFFFF
##7D2F8E1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114C91
Deuteranopia (green-blind)
#37548C
Tritanopia (blue-blind)
#7E3F5A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d2f8e;
/* rgb */ color: rgb(125, 47, 142);
/* oklch */ color: oklch(45.8% 0.162 320.0);
Tailwind
colors: {
  custom: {
    50: '#a66eaf',
    500: '#7d2f8e',
    950: '#000000',
  },
}
SCSS
$custom: #7d2f8e;
$custom-light: #a66eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2f8e",
  "rgb": {
    "r": 125,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 289.263,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45767,
    "c": 0.16245,
    "h": 320
  },
  "luminance": 0.08346
}

Semantic roles & 50–950 ramp

primary
#7D2F8E
secondary
#73B564
accent
#DA4E67
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D2F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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