#7F2B9E#7F2B9E

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

Color values

HEX#7F2B9E
RGBrgb(127, 43, 158)
HSLhsl(284, 57%, 39%)
HSVhsv(284, 73%, 62%)
CMYKcmyk(19.6%, 72.8%, 0%, 38%)
CIE-LABlab(35.42, 53.22, -45.95)
CIE-LCHlch(35.42, 70.31, 319.19°)
OKLaboklab(46.68% 0.1305 -0.1294)
OKLCHoklch(46.68% 0.184 315.2)
XYZxyz(15.7868, 8.7090, 33.1905)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2B9E #4A9E2B
analogous
#462B9E #7F2B9E #9E2B84
triadic
#7F2B9E #9E7F2B #2B9E7F
tetradic
#7F2B9E #9E462B #4A9E2B #2B849E
square
#7F2B9E #9E462B #4A9E2B #2B849E
split-complementary
#7F2B9E #849E2B #2B9E46
monochromatic
#32113E #581E6E #7F2B9E #A43CCA #BA6CD7

Accessibility & contrast

On white

7.66
#7F2B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7F2B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2B9E
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2B9E#FFFFFF#000000##FFFFFF
##7F2B9E1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA1
Deuteranopia (green-blind)
#28559B
Tritanopia (blue-blind)
#7D4362
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f2b9e;
/* rgb */ color: rgb(127, 43, 158);
/* oklch */ color: oklch(46.7% 0.184 315.2);
Tailwind
colors: {
  custom: {
    50: '#a86cbb',
    500: '#7f2b9e',
    950: '#000000',
  },
}
SCSS
$custom: #7f2b9e;
$custom-light: #a86cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2b9e",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 158
  },
  "hsl": {
    "h": 283.826,
    "s": 57.214,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46676,
    "c": 0.18377,
    "h": 315.2
  },
  "luminance": 0.08708
}

Semantic roles & 50–950 ramp

primary
#7F2B9E
secondary
#7EBE67
accent
#E04771
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F2B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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