#7D2F95#7D2F95

#7D2F95 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.2% C 0.169 H 317.2°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#7D2F95
RGBrgb(125, 47, 149)
HSLhsl(286, 52%, 38%)
HSVhsv(286, 68%, 58%)
CMYKcmyk(16.1%, 68.5%, 0%, 41.6%)
CIE-LABlab(35.13, 49.20, -40.96)
CIE-LCHlch(35.13, 64.02, 320.22°)
OKLaboklab(46.22% 0.1242 -0.1149)
OKLCHoklch(46.22% 0.169 317.2)
XYZxyz(14.8980, 8.5635, 29.2961)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2F95 #47952F
analogous
#4A2F95 #7D2F95 #952F7A
triadic
#7D2F95 #957D2F #2F957D
tetradic
#7D2F95 #954A2F #47952F #2F7A95
square
#7D2F95 #954A2F #47952F #2F7A95
split-complementary
#7D2F95 #7A952F #2F954A
monochromatic
#2F1238 #562066 #7D2F95 #A33FC2 #BA6DD1

Accessibility & contrast

On white

7.74
#7D2F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D2F95
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2F95#FFFFFF#000000##FFFFFF
##7D2F951.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E98
Deuteranopia (green-blind)
#315593
Tritanopia (blue-blind)
#7C425E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7d2f95;
/* rgb */ color: rgb(125, 47, 149);
/* oklch */ color: oklch(46.2% 0.169 317.2);
Tailwind
colors: {
  custom: {
    50: '#a66eb5',
    500: '#7d2f95',
    950: '#000000',
  },
}
SCSS
$custom: #7d2f95;
$custom-light: #a66eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2f95",
  "rgb": {
    "r": 125,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 285.882,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.4622,
    "c": 0.16923,
    "h": 317.2
  },
  "luminance": 0.08563
}

Semantic roles & 50–950 ramp

primary
#7D2F95
secondary
#7AB867
accent
#DB4C6E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2F95

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

Preview Lab → · Contrast checker → · Palette generator →

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