#7C2F88#7C2F88

#7C2F88 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.3% C 0.156 H 322.0°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#7C2F88
RGBrgb(124, 47, 136)
HSLhsl(292, 49%, 36%)
HSVhsv(292, 65%, 53%)
CMYKcmyk(8.8%, 65.4%, 0%, 46.7%)
CIE-LABlab(34.18, 46.31, -34.50)
CIE-LCHlch(34.18, 57.75, 323.32°)
OKLaboklab(45.25% 0.1232 -0.0961)
OKLCHoklch(45.25% 0.156 322)
XYZxyz(13.7722, 8.0964, 24.1251)
Luminance0.0810 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2F88 #3B882F
analogous
#4F2F88 #7C2F88 #882F67
triadic
#7C2F88 #887C2F #2F887C
tetradic
#7C2F88 #884F2F #3B882F #2F6788
square
#7C2F88 #884F2F #3B882F #2F6788
split-complementary
#7C2F88 #67882F #2F884F
monochromatic
#29102D #531F5B #7C2F88 #A53FB5 #BD67CA

Accessibility & contrast

On white

8.02
#7C2F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7C2F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2F88
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2F88#FFFFFF#000000##FFFFFF
##7C2F881.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4B8B
Deuteranopia (green-blind)
#3A5386
Tritanopia (blue-blind)
#7E3D57
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7c2f88;
/* rgb */ color: rgb(124, 47, 136);
/* oklch */ color: oklch(45.3% 0.156 322.0);
Tailwind
colors: {
  custom: {
    50: '#a56dab',
    500: '#7c2f88',
    950: '#000000',
  },
}
SCSS
$custom: #7c2f88;
$custom-light: #a56dab;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2f88",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 136
  },
  "hsl": {
    "h": 291.91,
    "s": 48.634,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45251,
    "c": 0.15621,
    "h": 322
  },
  "luminance": 0.08096
}

Semantic roles & 50–950 ramp

primary
#7C2F88
secondary
#6CB161
accent
#D85062
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C2F88

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

Preview Lab → · Contrast checker → · Palette generator →

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