#7F2B96#7F2B96

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

Color values

HEX#7F2B96
RGBrgb(127, 43, 150)
HSLhsl(287, 55%, 38%)
HSVhsv(287, 71%, 59%)
CMYKcmyk(15.3%, 71.3%, 0%, 41.2%)
CIE-LABlab(34.89, 51.58, -41.94)
CIE-LCHlch(34.89, 66.48, 320.88°)
OKLaboklab(46.13% 0.1312 -0.1177)
OKLCHoklch(46.13% 0.176 318.1)
XYZxyz(15.1205, 8.4425, 29.6813)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2B96 #42962B
analogous
#4A2B96 #7F2B96 #962B77
triadic
#7F2B96 #967F2B #2B967F
tetradic
#7F2B96 #964A2B #42962B #2B7796
square
#7F2B96 #964A2B #42962B #2B7796
split-complementary
#7F2B96 #77962B #2B964A
monochromatic
#2E1037 #571D66 #7F2B96 #A739C6 #BC68D4

Accessibility & contrast

On white

7.81
#7F2B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7F2B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2B96
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2B96#FFFFFF#000000##FFFFFF
##7F2B961.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D99
Deuteranopia (green-blind)
#305594
Tritanopia (blue-blind)
#7E405D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f2b96;
/* rgb */ color: rgb(127, 43, 150);
/* oklch */ color: oklch(46.1% 0.176 318.1);
Tailwind
colors: {
  custom: {
    50: '#a76cb5',
    500: '#7f2b96',
    950: '#000000',
  },
}
SCSS
$custom: #7f2b96;
$custom-light: #a76cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2b96",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 150
  },
  "hsl": {
    "h": 287.103,
    "s": 55.44,
    "l": 37.843
  },
  "oklch": {
    "l": 0.46129,
    "c": 0.17624,
    "h": 318.1
  },
  "luminance": 0.08442
}

Semantic roles & 50–950 ramp

primary
#7F2B96
secondary
#75BA63
accent
#DF4969
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2B96

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

Preview Lab → · Contrast checker → · Palette generator →

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