#7F2B9B#7F2B9B

#7F2B9B is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.5% C 0.181 H 316.3°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#7F2B9B
RGBrgb(127, 43, 155)
HSLhsl(285, 57%, 39%)
HSVhsv(285, 72%, 61%)
CMYKcmyk(18.1%, 72.3%, 0%, 39.2%)
CIE-LABlab(35.22, 52.60, -44.46)
CIE-LCHlch(35.22, 68.87, 319.80°)
OKLaboklab(46.47% 0.1308 -0.1251)
OKLCHoklch(46.47% 0.181 316.3)
XYZxyz(15.5318, 8.6069, 31.8472)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2B9B #479B2B
analogous
#472B9B #7F2B9B #9B2B7F
triadic
#7F2B9B #9B7F2B #2B9B7F
tetradic
#7F2B9B #9B472B #479B2B #2B7F9B
square
#7F2B9B #9B472B #479B2B #2B7F9B
split-complementary
#7F2B9B #7F9B2B #2B9B47
monochromatic
#30103B #581E6B #7F2B9B #A53BC9 #BB6BD6

Accessibility & contrast

On white

7.72
#7F2B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7F2B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2B9B
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2B9B#FFFFFF#000000##FFFFFF
##7F2B9B1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9E
Deuteranopia (green-blind)
#2B5598
Tritanopia (blue-blind)
#7D4260
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f2b9b;
/* rgb */ color: rgb(127, 43, 155);
/* oklch */ color: oklch(46.5% 0.181 316.3);
Tailwind
colors: {
  custom: {
    50: '#a86cb9',
    500: '#7f2b9b',
    950: '#000000',
  },
}
SCSS
$custom: #7f2b9b;
$custom-light: #a86cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2b9b",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 155
  },
  "hsl": {
    "h": 285,
    "s": 56.566,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46469,
    "c": 0.18094,
    "h": 316.3
  },
  "luminance": 0.08606
}

Semantic roles & 50–950 ramp

primary
#7F2B9B
secondary
#7BBC65
accent
#E0486E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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