#7F2F8D#7F2F8D

#7F2F8D is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.0% C 0.162 H 321.4°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#7F2F8D
RGBrgb(127, 47, 141)
HSLhsl(291, 50%, 37%)
HSVhsv(291, 67%, 55%)
CMYKcmyk(9.9%, 66.7%, 0%, 44.7%)
CIE-LABlab(34.94, 48.06, -36.35)
CIE-LCHlch(34.94, 60.26, 322.90°)
OKLaboklab(45.99% 0.1269 -0.1014)
OKLCHoklch(45.99% 0.162 321.4)
XYZxyz(14.5761, 8.4689, 26.0610)
Luminance0.0847 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2F8D #3D8D2F
analogous
#502F8D #7F2F8D #8D2F6C
triadic
#7F2F8D #8D7F2F #2F8D7F
tetradic
#7F2F8D #8D502F #3D8D2F #2F6C8D
square
#7F2F8D #8D502F #3D8D2F #2F6C8D
split-complementary
#7F2F8D #6C8D2F #2F8D50
monochromatic
#2C1031 #56205F #7F2F8D #A83EBB #BE69CD

Accessibility & contrast

On white

7.80
#7F2F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2F8D
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2F8D#FFFFFF#000000##FFFFFF
##7F2F8D1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154C90
Deuteranopia (green-blind)
#3A558B
Tritanopia (blue-blind)
#803F5A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f2f8d;
/* rgb */ color: rgb(127, 47, 141);
/* oklch */ color: oklch(46.0% 0.162 321.4);
Tailwind
colors: {
  custom: {
    50: '#a76eaf',
    500: '#7f2f8d',
    950: '#000000',
  },
}
SCSS
$custom: #7f2f8d;
$custom-light: #a76eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2f8d",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 291.064,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45987,
    "c": 0.16245,
    "h": 321.4
  },
  "luminance": 0.08468
}

Semantic roles & 50–950 ramp

primary
#7F2F8D
secondary
#70B464
accent
#DA4E63
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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