#7F2F8E#7F2F8E

#7F2F8E is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.1% C 0.163 H 321.0°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#7F2F8E
RGBrgb(127, 47, 142)
HSLhsl(291, 50%, 37%)
HSVhsv(291, 67%, 56%)
CMYKcmyk(10.6%, 66.9%, 0%, 44.3%)
CIE-LABlab(35.00, 48.26, -36.87)
CIE-LCHlch(35.00, 60.73, 322.62°)
OKLaboklab(46.05% 0.1269 -0.1029)
OKLCHoklch(46.05% 0.163 321)
XYZxyz(14.6508, 8.4988, 26.4547)
Luminance0.0850 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2F8E #3E8E2F
analogous
#4F2F8E #7F2F8E #8E2F6E
triadic
#7F2F8E #8E7F2F #2F8E7F
tetradic
#7F2F8E #8E4F2F #3E8E2F #2F6E8E
square
#7F2F8E #8E4F2F #3E8E2F #2F6E8E
split-complementary
#7F2F8E #6E8E2F #2F8E4F
monochromatic
#2D1132 #562060 #7F2F8E #A83EBC #BE6ACE

Accessibility & contrast

On white

7.78
#7F2F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7F2F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2F8E
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2F8E#FFFFFF#000000##FFFFFF
##7F2F8E1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144D91
Deuteranopia (green-blind)
#39558C
Tritanopia (blue-blind)
#803F5A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f2f8e;
/* rgb */ color: rgb(127, 47, 142);
/* oklch */ color: oklch(46.1% 0.163 321.0);
Tailwind
colors: {
  custom: {
    50: '#a76eaf',
    500: '#7f2f8e',
    950: '#000000',
  },
}
SCSS
$custom: #7f2f8e;
$custom-light: #a76eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2f8e",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 290.526,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4605,
    "c": 0.1634,
    "h": 321
  },
  "luminance": 0.08498
}

Semantic roles & 50–950 ramp

primary
#7F2F8E
secondary
#71B564
accent
#DA4E64
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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