#7C2F87#7C2F87

#7C2F87 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.2% C 0.155 H 322.5°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#7C2F87
RGBrgb(124, 47, 135)
HSLhsl(293, 48%, 36%)
HSVhsv(293, 65%, 53%)
CMYKcmyk(8.1%, 65.2%, 0%, 47.1%)
CIE-LABlab(34.12, 46.11, -33.98)
CIE-LCHlch(34.12, 57.28, 323.62°)
OKLaboklab(45.19% 0.1231 -0.0945)
OKLCHoklch(45.19% 0.155 322.5)
XYZxyz(13.7014, 8.0681, 23.7526)
Luminance0.0807 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2F87 #3A872F
analogous
#502F87 #7C2F87 #872F66
triadic
#7C2F87 #877C2F #2F877C
tetradic
#7C2F87 #87502F #3A872F #2F6687
square
#7C2F87 #87502F #3A872F #2F6687
split-complementary
#7C2F87 #66872F #2F8750
monochromatic
#290F2C #521F5A #7C2F87 #A63FB4 #BD66CA

Accessibility & contrast

On white

8.04
#7C2F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7C2F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2F87
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2F87#FFFFFF#000000##FFFFFF
##7C2F871.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c2f87;
/* rgb */ color: rgb(124, 47, 135);
/* oklch */ color: oklch(45.2% 0.155 322.5);
Tailwind
colors: {
  custom: {
    50: '#a56daa',
    500: '#7c2f87',
    950: '#000000',
  },
}
SCSS
$custom: #7c2f87;
$custom-light: #a56daa;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2f87",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 292.5,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45189,
    "c": 0.15525,
    "h": 322.5
  },
  "luminance": 0.08067
}

Semantic roles & 50–950 ramp

primary
#7C2F87
secondary
#6BB161
accent
#D85061
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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