#7F1BA7#7F1BA7

#7F1BA7 is a mid, highly saturated purple. Relative luminance 0.081; OKLCH L 46.0% C 0.208 H 313.3°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#7F1BA7
RGBrgb(127, 27, 167)
HSLhsl(283, 72%, 38%)
HSVhsv(283, 84%, 65%)
CMYKcmyk(24%, 83.8%, 0%, 34.5%)
CIE-LABlab(34.16, 60.54, -53.41)
CIE-LCHlch(34.16, 80.73, 318.58°)
OKLaboklab(46% 0.1425 -0.1512)
OKLCHoklch(46% 0.208 313.3)
XYZxyz(16.1181, 8.0864, 37.2635)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1BA7 #43A71B
analogous
#391BA7 #7F1BA7 #A71B89
triadic
#7F1BA7 #A77F1B #1BA77F
tetradic
#7F1BA7 #A7391B #43A71B #1B89A7
square
#7F1BA7 #A7391B #43A71B #1B89A7
split-complementary
#7F1BA7 #89A71B #1BA739
monochromatic
#2F0A3E #571272 #7F1BA7 #A724DC #BC58E4

Accessibility & contrast

On white

8.02
#7F1BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7F1BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1BA7
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1BA7#FFFFFF#000000##FFFFFF
##7F1BA71.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#0052A4
Tritanopia (blue-blind)
#7B4063
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f1ba7;
/* rgb */ color: rgb(127, 27, 167);
/* oklch */ color: oklch(46.0% 0.208 313.3);
Tailwind
colors: {
  custom: {
    50: '#a966c2',
    500: '#7f1ba7',
    950: '#000000',
  },
}
SCSS
$custom: #7f1ba7;
$custom-light: #a966c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1ba7",
  "rgb": {
    "r": 127,
    "g": 27,
    "b": 167
  },
  "hsl": {
    "h": 282.857,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45996,
    "c": 0.2078,
    "h": 313.3
  },
  "luminance": 0.08086
}

Semantic roles & 50–950 ramp

primary
#7F1BA7
secondary
#77C856
accent
#EF396D
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F1BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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