#7F2B94#7F2B94

#7F2B94 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.0% C 0.174 H 318.9°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#7F2B94
RGBrgb(127, 43, 148)
HSLhsl(288, 55%, 37%)
HSVhsv(288, 71%, 58%)
CMYKcmyk(14.2%, 70.9%, 0%, 42%)
CIE-LABlab(34.76, 51.18, -40.93)
CIE-LCHlch(34.76, 65.53, 321.35°)
OKLaboklab(46% 0.1313 -0.1147)
OKLCHoklch(46% 0.174 318.9)
XYZxyz(14.9609, 8.3786, 28.8404)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2B94 #40942B
analogous
#4A2B94 #7F2B94 #942B75
triadic
#7F2B94 #947F2B #2B947F
tetradic
#7F2B94 #944A2B #40942B #2B7594
square
#7F2B94 #944A2B #40942B #2B7594
split-complementary
#7F2B94 #75942B #2B944A
monochromatic
#2E0F35 #561D65 #7F2B94 #A839C3 #BD67D3

Accessibility & contrast

On white

7.85
#7F2B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7F2B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2B94
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2B94#FFFFFF#000000##FFFFFF
##7F2B941.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C97
Deuteranopia (green-blind)
#315492
Tritanopia (blue-blind)
#7F3F5C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f2b94;
/* rgb */ color: rgb(127, 43, 148);
/* oklch */ color: oklch(46.0% 0.174 318.9);
Tailwind
colors: {
  custom: {
    50: '#a76cb4',
    500: '#7f2b94',
    950: '#000000',
  },
}
SCSS
$custom: #7f2b94;
$custom-light: #a76cb4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2b94",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 148
  },
  "hsl": {
    "h": 288,
    "s": 54.974,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45996,
    "c": 0.17437,
    "h": 318.9
  },
  "luminance": 0.08378
}

Semantic roles & 50–950 ramp

primary
#7F2B94
secondary
#73B962
accent
#DE4967
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2B94

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

Preview Lab → · Contrast checker → · Palette generator →

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