#7D2F9E#7D2F9E

#7D2F9E is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.8% C 0.178 H 314.0°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#7D2F9E
RGBrgb(125, 47, 158)
HSLhsl(282, 54%, 40%)
HSVhsv(282, 70%, 62%)
CMYKcmyk(20.9%, 70.3%, 0%, 38%)
CIE-LABlab(35.72, 51.10, -45.48)
CIE-LCHlch(35.72, 68.41, 318.33°)
OKLaboklab(46.83% 0.1236 -0.1282)
OKLCHoklch(46.83% 0.178 314)
XYZxyz(15.6445, 8.8621, 33.2276)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2F9E #509E2F
analogous
#452F9E #7D2F9E #9E2F87
triadic
#7D2F9E #9E7D2F #2F9E7D
tetradic
#7D2F9E #9E452F #509E2F #2F879E
square
#7D2F9E #9E452F #509E2F #2F879E
split-complementary
#7D2F9E #879E2F #2F9E45
monochromatic
#321340 #58216F #7D2F9E #A043C7 #B872D5

Accessibility & contrast

On white

7.57
#7D2F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7D2F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2F9E
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2F9E#FFFFFF#000000##FFFFFF
##7D2F9E1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A1
Deuteranopia (green-blind)
#29569B
Tritanopia (blue-blind)
#7A4663
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7d2f9e;
/* rgb */ color: rgb(125, 47, 158);
/* oklch */ color: oklch(46.8% 0.178 314.0);
Tailwind
colors: {
  custom: {
    50: '#a66ebb',
    500: '#7d2f9e',
    950: '#000000',
  },
}
SCSS
$custom: #7d2f9e;
$custom-light: #a66ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2f9e",
  "rgb": {
    "r": 125,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 282.162,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46829,
    "c": 0.17805,
    "h": 314
  },
  "luminance": 0.08862
}

Semantic roles & 50–950 ramp

primary
#7D2F9E
secondary
#84BD6C
accent
#DE4A76
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7D2F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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