#7F2C9D#7F2C9D

#7F2C9D is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.7% C 0.182 H 315.5°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#7F2C9D
RGBrgb(127, 44, 157)
HSLhsl(284, 56%, 39%)
HSVhsv(284, 72%, 62%)
CMYKcmyk(19.1%, 72%, 0%, 38.4%)
CIE-LABlab(35.50, 52.60, -45.22)
CIE-LCHlch(35.50, 69.37, 319.31°)
OKLaboklab(46.71% 0.1295 -0.1273)
OKLCHoklch(46.71% 0.182 315.5)
XYZxyz(15.7379, 8.7483, 32.7513)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2C9D #4A9D2C
analogous
#472C9D #7F2C9D #9D2C83
triadic
#7F2C9D #9D7F2C #2C9D7F
tetradic
#7F2C9D #9D472C #4A9D2C #2C839D
square
#7F2C9D #9D472C #4A9D2C #2C839D
split-complementary
#7F2C9D #839D2C #2C9D47
monochromatic
#32113D #581F6D #7F2C9D #A43DC9 #BA6DD6

Accessibility & contrast

On white

7.64
#7F2C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7F2C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2C9D
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2C9D#FFFFFF#000000##FFFFFF
##7F2C9D1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA0
Deuteranopia (green-blind)
#2A569A
Tritanopia (blue-blind)
#7D4362
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f2c9d;
/* rgb */ color: rgb(127, 44, 157);
/* oklch */ color: oklch(46.7% 0.182 315.5);
Tailwind
colors: {
  custom: {
    50: '#a86dbb',
    500: '#7f2c9d',
    950: '#000000',
  },
}
SCSS
$custom: #7f2c9d;
$custom-light: #a86dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2c9d",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 157
  },
  "hsl": {
    "h": 284.071,
    "s": 56.219,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4671,
    "c": 0.18161,
    "h": 315.5
  },
  "luminance": 0.08748
}

Semantic roles & 50–950 ramp

primary
#7F2C9D
secondary
#7EBD68
accent
#E04870
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F2C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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