#7F2D9D#7F2D9D

#7F2D9D is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.8% C 0.180 H 315.4°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#7F2D9D
RGBrgb(127, 45, 157)
HSLhsl(284, 55%, 40%)
HSVhsv(284, 71%, 62%)
CMYKcmyk(19.1%, 71.3%, 0%, 38.4%)
CIE-LABlab(35.64, 52.18, -44.98)
CIE-LCHlch(35.64, 68.89, 319.24°)
OKLaboklab(46.82% 0.1285 -0.1266)
OKLCHoklch(46.82% 0.18 315.4)
XYZxyz(15.7756, 8.8237, 32.7639)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2D9D #4B9D2D
analogous
#472D9D #7F2D9D #9D2D83
triadic
#7F2D9D #9D7F2D #2D9D7F
tetradic
#7F2D9D #9D472D #4B9D2D #2D839D
square
#7F2D9D #9D472D #4B9D2D #2D839D
split-complementary
#7F2D9D #839D2D #2D9D47
monochromatic
#32123E #591F6D #7F2D9D #A33FC8 #BA6FD6

Accessibility & contrast

On white

7.60
#7F2D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7F2D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2D9D
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2D9D#FFFFFF#000000##FFFFFF
##7F2D9D1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA0
Deuteranopia (green-blind)
#2B569A
Tritanopia (blue-blind)
#7D4462
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f2d9d;
/* rgb */ color: rgb(127, 45, 157);
/* oklch */ color: oklch(46.8% 0.180 315.4);
Tailwind
colors: {
  custom: {
    50: '#a86dba',
    500: '#7f2d9d',
    950: '#000000',
  },
}
SCSS
$custom: #7f2d9d;
$custom-light: #a86dba;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2d9d",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 157
  },
  "hsl": {
    "h": 283.929,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46815,
    "c": 0.18037,
    "h": 315.4
  },
  "luminance": 0.08823
}

Semantic roles & 50–950 ramp

primary
#7F2D9D
secondary
#7FBD69
accent
#DF4971
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F2D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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