#7F2F83#7F2F83

#7F2F83 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.4% C 0.153 H 325.8°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#7F2F83
RGBrgb(127, 47, 131)
HSLhsl(297, 47%, 35%)
HSVhsv(297, 64%, 51%)
CMYKcmyk(3.1%, 64.1%, 0%, 48.6%)
CIE-LABlab(34.36, 46.12, -31.09)
CIE-LCHlch(34.36, 55.62, 326.02°)
OKLaboklab(45.38% 0.1267 -0.0861)
OKLCHoklch(45.38% 0.153 325.8)
XYZxyz(13.8654, 8.1846, 22.3178)
Luminance0.0818 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2F83 #33832F
analogous
#552F83 #7F2F83 #832F5D
triadic
#7F2F83 #837F2F #2F837F
tetradic
#7F2F83 #83552F #33832F #2F5D83
square
#7F2F83 #83552F #33832F #2F5D83
split-complementary
#7F2F83 #5D832F #2F8355
monochromatic
#280F29 #531F56 #7F2F83 #AB3FB0 #C365C8

Accessibility & contrast

On white

7.96
#7F2F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7F2F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2F83
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2F83#FFFFFF#000000##FFFFFF
##7F2F831.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224A86
Deuteranopia (green-blind)
#405481
Tritanopia (blue-blind)
#823B54
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f2f83;
/* rgb */ color: rgb(127, 47, 131);
/* oklch */ color: oklch(45.4% 0.153 325.8);
Tailwind
colors: {
  custom: {
    50: '#a76da7',
    500: '#7f2f83',
    950: '#000000',
  },
}
SCSS
$custom: #7f2f83;
$custom-light: #a76da7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2f83",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 131
  },
  "hsl": {
    "h": 297.143,
    "s": 47.191,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45384,
    "c": 0.15313,
    "h": 325.8
  },
  "luminance": 0.08184
}

Semantic roles & 50–950 ramp

primary
#7F2F83
secondary
#63AF5F
accent
#D75157
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F2F83

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

Preview Lab → · Contrast checker → · Palette generator →

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