#7C2F8F#7C2F8F

#7C2F8F is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.7% C 0.163 H 319.1°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#7C2F8F
RGBrgb(124, 47, 143)
HSLhsl(288, 51%, 37%)
HSVhsv(288, 67%, 56%)
CMYKcmyk(13.3%, 67.1%, 0%, 43.9%)
CIE-LABlab(34.60, 47.72, -38.14)
CIE-LCHlch(34.60, 61.09, 321.37°)
OKLaboklab(45.69% 0.1232 -0.1067)
OKLCHoklch(45.69% 0.163 319.1)
XYZxyz(14.2860, 8.3019, 26.8312)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2F8F #428F2F
analogous
#4C2F8F #7C2F8F #8F2F72
triadic
#7C2F8F #8F7C2F #2F8F7C
tetradic
#7C2F8F #8F4C2F #428F2F #2F728F
square
#7C2F8F #8F4C2F #428F2F #2F728F
split-complementary
#7C2F8F #728F2F #2F8F4C
monochromatic
#2C1133 #542061 #7C2F8F #A43EBD #BA6ACE

Accessibility & contrast

On white

7.89
#7C2F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7C2F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2F8F
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2F8F#FFFFFF#000000##FFFFFF
##7C2F8F1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4C92
Deuteranopia (green-blind)
#35548D
Tritanopia (blue-blind)
#7C405B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c2f8f;
/* rgb */ color: rgb(124, 47, 143);
/* oklch */ color: oklch(45.7% 0.163 319.1);
Tailwind
colors: {
  custom: {
    50: '#a56eb0',
    500: '#7c2f8f',
    950: '#000000',
  },
}
SCSS
$custom: #7c2f8f;
$custom-light: #a56eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2f8f",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 288.125,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.4569,
    "c": 0.16295,
    "h": 319.1
  },
  "luminance": 0.08301
}

Semantic roles & 50–950 ramp

primary
#7C2F8F
secondary
#75B565
accent
#DA4E6A
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C2F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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