#7F2F95#7F2F95

#7F2F95 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.5% C 0.170 H 318.2°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#7F2F95
RGBrgb(127, 47, 149)
HSLhsl(287, 52%, 38%)
HSVhsv(287, 68%, 58%)
CMYKcmyk(14.8%, 68.5%, 0%, 41.6%)
CIE-LABlab(35.43, 49.67, -40.46)
CIE-LCHlch(35.43, 64.07, 320.83°)
OKLaboklab(46.5% 0.1268 -0.1134)
OKLCHoklch(46.5% 0.17 318.2)
XYZxyz(15.1930, 8.7156, 29.3099)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2F95 #45952F
analogous
#4C2F95 #7F2F95 #952F78
triadic
#7F2F95 #957F2F #2F957F
tetradic
#7F2F95 #954C2F #45952F #2F7895
square
#7F2F95 #954C2F #45952F #2F7895
split-complementary
#7F2F95 #78952F #2F954C
monochromatic
#301238 #572066 #7F2F95 #A63FC2 #BC6DD1

Accessibility & contrast

On white

7.66
#7F2F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7F2F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2F95
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2F95#FFFFFF#000000##FFFFFF
##7F2F951.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024E98
Deuteranopia (green-blind)
#345693
Tritanopia (blue-blind)
#7F425E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f2f95;
/* rgb */ color: rgb(127, 47, 149);
/* oklch */ color: oklch(46.5% 0.170 318.2);
Tailwind
colors: {
  custom: {
    50: '#a76eb5',
    500: '#7f2f95',
    950: '#000000',
  },
}
SCSS
$custom: #7f2f95;
$custom-light: #a76eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2f95",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 287.059,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46498,
    "c": 0.17009,
    "h": 318.2
  },
  "luminance": 0.08715
}

Semantic roles & 50–950 ramp

primary
#7F2F95
secondary
#79B867
accent
#DB4C6B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7F2F95

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

Preview Lab → · Contrast checker → · Palette generator →

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