#7F2D9F#7F2D9F

#7F2D9F is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.0% C 0.182 H 314.7°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#7F2D9F
RGBrgb(127, 45, 159)
HSLhsl(283, 56%, 40%)
HSVhsv(283, 72%, 62%)
CMYKcmyk(20.1%, 71.7%, 0%, 37.6%)
CIE-LABlab(35.78, 52.60, -45.98)
CIE-LCHlch(35.78, 69.86, 318.84°)
OKLaboklab(46.95% 0.1283 -0.1295)
OKLCHoklch(46.95% 0.182 314.7)
XYZxyz(15.9478, 8.8926, 33.6705)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2D9F #4D9F2D
analogous
#462D9F #7F2D9F #9F2D86
triadic
#7F2D9F #9F7F2D #2D9F7F
tetradic
#7F2D9F #9F462D #4D9F2D #2D869F
square
#7F2D9F #9F462D #4D9F2D #2D869F
split-complementary
#7F2D9F #869F2D #2D9F46
monochromatic
#331240 #59206F #7F2D9F #A340C9 #BA70D6

Accessibility & contrast

On white

7.56
#7F2D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7F2D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2D9F
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2D9F#FFFFFF#000000##FFFFFF
##7F2D9F1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A2
Deuteranopia (green-blind)
#28569C
Tritanopia (blue-blind)
#7C4563
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f2d9f;
/* rgb */ color: rgb(127, 45, 159);
/* oklch */ color: oklch(47.0% 0.182 314.7);
Tailwind
colors: {
  custom: {
    50: '#a86dbc',
    500: '#7f2d9f',
    950: '#000000',
  },
}
SCSS
$custom: #7f2d9f;
$custom-light: #a86dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2d9f",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 283.158,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.46953,
    "c": 0.18229,
    "h": 314.7
  },
  "luminance": 0.08892
}

Semantic roles & 50–950 ramp

primary
#7F2D9F
secondary
#82BE6A
accent
#DF4973
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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