#7F2B9D#7F2B9D

#7F2B9D is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.6% C 0.183 H 315.6°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#7F2B9D
RGBrgb(127, 43, 157)
HSLhsl(284, 57%, 39%)
HSVhsv(284, 73%, 62%)
CMYKcmyk(19.1%, 72.6%, 0%, 38.4%)
CIE-LABlab(35.35, 53.01, -45.45)
CIE-LCHlch(35.35, 69.83, 319.39°)
OKLaboklab(46.61% 0.1306 -0.128)
OKLCHoklch(46.61% 0.183 315.6)
XYZxyz(15.7011, 8.6747, 32.7391)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2B9D #499D2B
analogous
#462B9D #7F2B9D #9D2B82
triadic
#7F2B9D #9D7F2B #2B9D7F
tetradic
#7F2B9D #9D462B #499D2B #2B829D
square
#7F2B9D #9D462B #499D2B #2B829D
split-complementary
#7F2B9D #829D2B #2B9D46
monochromatic
#31113D #581E6D #7F2B9D #A43CCA #BB6CD7

Accessibility & contrast

On white

7.68
#7F2B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7F2B9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2B9D
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2B9D#FFFFFF#000000##FFFFFF
##7F2B9D1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA0
Deuteranopia (green-blind)
#29559A
Tritanopia (blue-blind)
#7D4361
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f2b9d;
/* rgb */ color: rgb(127, 43, 157);
/* oklch */ color: oklch(46.6% 0.183 315.6);
Tailwind
colors: {
  custom: {
    50: '#a86cbb',
    500: '#7f2b9d',
    950: '#000000',
  },
}
SCSS
$custom: #7f2b9d;
$custom-light: #a86cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2b9d",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 157
  },
  "hsl": {
    "h": 284.211,
    "s": 57,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46607,
    "c": 0.18282,
    "h": 315.6
  },
  "luminance": 0.08674
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F2B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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