#7F2B95#7F2B95

#7F2B95 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.1% C 0.175 H 318.5°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#7F2B95
RGBrgb(127, 43, 149)
HSLhsl(288, 55%, 38%)
HSVhsv(288, 71%, 58%)
CMYKcmyk(14.8%, 71.1%, 0%, 41.6%)
CIE-LABlab(34.82, 51.38, -41.44)
CIE-LCHlch(34.82, 66.00, 321.11°)
OKLaboklab(46.06% 0.1313 -0.1162)
OKLCHoklch(46.06% 0.175 318.5)
XYZxyz(15.0403, 8.4104, 29.2591)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2B95 #41952B
analogous
#4A2B95 #7F2B95 #952B76
triadic
#7F2B95 #957F2B #2B957F
tetradic
#7F2B95 #954A2B #41952B #2B7695
square
#7F2B95 #954A2B #41952B #2B7695
split-complementary
#7F2B95 #76952B #2B954A
monochromatic
#2E1036 #571D66 #7F2B95 #A739C4 #BD67D3

Accessibility & contrast

On white

7.83
#7F2B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2B95
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2B95#FFFFFF#000000##FFFFFF
##7F2B951.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C98
Deuteranopia (green-blind)
#315593
Tritanopia (blue-blind)
#7F3F5D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f2b95;
/* rgb */ color: rgb(127, 43, 149);
/* oklch */ color: oklch(46.1% 0.175 318.5);
Tailwind
colors: {
  custom: {
    50: '#a76cb5',
    500: '#7f2b95',
    950: '#000000',
  },
}
SCSS
$custom: #7f2b95;
$custom-light: #a76cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2b95",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 149
  },
  "hsl": {
    "h": 287.547,
    "s": 55.208,
    "l": 37.647
  },
  "oklch": {
    "l": 0.46062,
    "c": 0.1753,
    "h": 318.5
  },
  "luminance": 0.0841
}

Semantic roles & 50–950 ramp

primary
#7F2B95
secondary
#74BA62
accent
#DF4968
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2B95

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

Preview Lab → · Contrast checker → · Palette generator →

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