#7D2F91#7D2F91

#7D2F91 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.0% C 0.165 H 318.8°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#7D2F91
RGBrgb(125, 47, 145)
HSLhsl(288, 51%, 38%)
HSVhsv(288, 68%, 57%)
CMYKcmyk(13.8%, 67.6%, 0%, 43.1%)
CIE-LABlab(34.88, 48.38, -38.92)
CIE-LCHlch(34.88, 62.09, 321.18°)
OKLaboklab(45.96% 0.1244 -0.1089)
OKLCHoklch(45.96% 0.165 318.8)
XYZxyz(14.5841, 8.4380, 27.6431)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2F91 #43912F
analogous
#4C2F91 #7D2F91 #912F74
triadic
#7D2F91 #917D2F #2F917D
tetradic
#7D2F91 #914C2F #43912F #2F7491
square
#7D2F91 #914C2F #43912F #2F7491
split-complementary
#7D2F91 #74912F #2F914C
monochromatic
#2D1135 #552063 #7D2F91 #A53EBF #BB6BCF

Accessibility & contrast

On white

7.81
#7D2F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7D2F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2F91
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2F91#FFFFFF#000000##FFFFFF
##7D2F911.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4D94
Deuteranopia (green-blind)
#35558F
Tritanopia (blue-blind)
#7D415C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d2f91;
/* rgb */ color: rgb(125, 47, 145);
/* oklch */ color: oklch(46.0% 0.165 318.8);
Tailwind
colors: {
  custom: {
    50: '#a66eb2',
    500: '#7d2f91',
    950: '#000000',
  },
}
SCSS
$custom: #7d2f91;
$custom-light: #a66eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2f91",
  "rgb": {
    "r": 125,
    "g": 47,
    "b": 145
  },
  "hsl": {
    "h": 287.755,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45959,
    "c": 0.16534,
    "h": 318.8
  },
  "luminance": 0.08437
}

Semantic roles & 50–950 ramp

primary
#7D2F91
secondary
#76B665
accent
#DB4D6A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2F91

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

Preview Lab → · Contrast checker → · Palette generator →

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