#7F2F92#7F2F92

#7F2F92 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.3% C 0.167 H 319.4°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#7F2F92
RGBrgb(127, 47, 146)
HSLhsl(288, 51%, 38%)
HSVhsv(288, 68%, 57%)
CMYKcmyk(13%, 67.8%, 0%, 42.7%)
CIE-LABlab(35.24, 49.06, -38.93)
CIE-LCHlch(35.24, 62.63, 321.57°)
OKLaboklab(46.3% 0.1269 -0.1089)
OKLCHoklch(46.3% 0.167 319.4)
XYZxyz(14.9566, 8.6211, 28.0648)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2F92 #42922F
analogous
#4E2F92 #7F2F92 #922F73
triadic
#7F2F92 #927F2F #2F927F
tetradic
#7F2F92 #924E2F #42922F #2F7392
square
#7F2F92 #924E2F #42922F #2F7392
split-complementary
#7F2F92 #73922F #2F924E
monochromatic
#2E1135 #572064 #7F2F92 #A73EC0 #BC6CD0

Accessibility & contrast

On white

7.71
#7F2F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2F92
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2F92#FFFFFF#000000##FFFFFF
##7F2F921.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4D95
Deuteranopia (green-blind)
#365690
Tritanopia (blue-blind)
#7F415C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f2f92;
/* rgb */ color: rgb(127, 47, 146);
/* oklch */ color: oklch(46.3% 0.167 319.4);
Tailwind
colors: {
  custom: {
    50: '#a76eb2',
    500: '#7f2f92',
    950: '#000000',
  },
}
SCSS
$custom: #7f2f92;
$custom-light: #a76eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2f92",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 146
  },
  "hsl": {
    "h": 288.485,
    "s": 51.295,
    "l": 37.843
  },
  "oklch": {
    "l": 0.46304,
    "c": 0.16721,
    "h": 319.4
  },
  "luminance": 0.0862
}

Semantic roles & 50–950 ramp

primary
#7F2F92
secondary
#75B766
accent
#DB4D68
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7F2F92

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

Preview Lab → · Contrast checker → · Palette generator →

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