#7F2F91#7F2F91

#7F2F91 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.2% C 0.166 H 319.8°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#7F2F91
RGBrgb(127, 47, 145)
HSLhsl(289, 51%, 38%)
HSVhsv(289, 68%, 57%)
CMYKcmyk(12.4%, 67.6%, 0%, 43.1%)
CIE-LABlab(35.18, 48.86, -38.42)
CIE-LCHlch(35.18, 62.15, 321.82°)
OKLaboklab(46.24% 0.1269 -0.1074)
OKLCHoklch(46.24% 0.166 319.8)
XYZxyz(14.8791, 8.5901, 27.6569)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2F91 #41912F
analogous
#4E2F91 #7F2F91 #912F72
triadic
#7F2F91 #917F2F #2F917F
tetradic
#7F2F91 #914E2F #41912F #2F7291
square
#7F2F91 #914E2F #41912F #2F7291
split-complementary
#7F2F91 #72912F #2F914E
monochromatic
#2E1135 #572063 #7F2F91 #A73EBF #BD6BCF

Accessibility & contrast

On white

7.73
#7F2F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7F2F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2F91
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2F91#FFFFFF#000000##FFFFFF
##7F2F911.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4D94
Deuteranopia (green-blind)
#37568F
Tritanopia (blue-blind)
#7F405C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f2f91;
/* rgb */ color: rgb(127, 47, 145);
/* oklch */ color: oklch(46.2% 0.166 319.8);
Tailwind
colors: {
  custom: {
    50: '#a76eb2',
    500: '#7f2f91',
    950: '#000000',
  },
}
SCSS
$custom: #7f2f91;
$custom-light: #a76eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2f91",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 145
  },
  "hsl": {
    "h": 288.98,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4624,
    "c": 0.16625,
    "h": 319.8
  },
  "luminance": 0.08589
}

Semantic roles & 50–950 ramp

primary
#7F2F91
secondary
#74B665
accent
#DB4D67
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7F2F91

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

Preview Lab → · Contrast checker → · Palette generator →

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