#7F2F99#7F2F99

#7F2F99 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.8% C 0.174 H 316.7°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#7F2F99
RGBrgb(127, 47, 153)
HSLhsl(285, 53%, 39%)
HSVhsv(285, 69%, 60%)
CMYKcmyk(17%, 69.3%, 0%, 40%)
CIE-LABlab(35.69, 50.49, -42.49)
CIE-LCHlch(35.69, 65.99, 319.92°)
OKLaboklab(46.76% 0.1266 -0.1193)
OKLCHoklch(46.76% 0.174 316.7)
XYZxyz(15.5178, 8.8456, 31.0208)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2F99 #49992F
analogous
#4A2F99 #7F2F99 #992F7E
triadic
#7F2F99 #997F2F #2F997F
tetradic
#7F2F99 #994A2F #49992F #2F7E99
square
#7F2F99 #994A2F #49992F #2F7E99
split-complementary
#7F2F99 #7E992F #2F994A
monochromatic
#31123B #58216A #7F2F99 #A441C5 #BB6FD3

Accessibility & contrast

On white

7.58
#7F2F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7F2F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2F99
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2F99#FFFFFF#000000##FFFFFF
##7F2F991.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9C
Deuteranopia (green-blind)
#305697
Tritanopia (blue-blind)
#7E4360
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f2f99;
/* rgb */ color: rgb(127, 47, 153);
/* oklch */ color: oklch(46.8% 0.174 316.7);
Tailwind
colors: {
  custom: {
    50: '#a76eb8',
    500: '#7f2f99',
    950: '#000000',
  },
}
SCSS
$custom: #7f2f99;
$custom-light: #a76eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2f99",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 153
  },
  "hsl": {
    "h": 285.283,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46762,
    "c": 0.17395,
    "h": 316.7
  },
  "luminance": 0.08845
}

Semantic roles & 50–950 ramp

primary
#7F2F99
secondary
#7DBA69
accent
#DC4B6F
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7F2F99

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

Preview Lab → · Contrast checker → · Palette generator →

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