#7D2F94#7D2F94

#7D2F94 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.168 H 317.6°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#7D2F94
RGBrgb(125, 47, 148)
HSLhsl(286, 52%, 38%)
HSVhsv(286, 68%, 58%)
CMYKcmyk(15.5%, 68.2%, 0%, 42%)
CIE-LABlab(35.07, 48.99, -40.45)
CIE-LCHlch(35.07, 63.53, 320.45°)
OKLaboklab(46.15% 0.1243 -0.1134)
OKLCHoklch(46.15% 0.168 317.6)
XYZxyz(14.8185, 8.5317, 28.8775)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2F94 #46942F
analogous
#4A2F94 #7D2F94 #942F78
triadic
#7D2F94 #947D2F #2F947D
tetradic
#7D2F94 #944A2F #46942F #2F7894
square
#7D2F94 #944A2F #46942F #2F7894
split-complementary
#7D2F94 #78942F #2F944A
monochromatic
#2F1137 #562066 #7D2F94 #A43EC2 #BA6DD1

Accessibility & contrast

On white

7.76
#7D2F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7D2F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2F94
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2F94#FFFFFF#000000##FFFFFF
##7D2F941.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024E97
Deuteranopia (green-blind)
#325592
Tritanopia (blue-blind)
#7C425D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d2f94;
/* rgb */ color: rgb(125, 47, 148);
/* oklch */ color: oklch(46.2% 0.168 317.6);
Tailwind
colors: {
  custom: {
    50: '#a66eb4',
    500: '#7d2f94',
    950: '#000000',
  },
}
SCSS
$custom: #7d2f94;
$custom-light: #a66eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2f94",
  "rgb": {
    "r": 125,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 286.337,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46154,
    "c": 0.16825,
    "h": 317.6
  },
  "luminance": 0.08531
}

Semantic roles & 50–950 ramp

primary
#7D2F94
secondary
#79B867
accent
#DB4D6D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2F94

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

Preview Lab → · Contrast checker → · Palette generator →

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