#7C2A97#7C2A97

#7C2A97 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.7% C 0.177 H 316.4°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#7C2A97
RGBrgb(124, 42, 151)
HSLhsl(285, 56%, 38%)
HSVhsv(285, 72%, 59%)
CMYKcmyk(17.9%, 72.2%, 0%, 40.8%)
CIE-LABlab(34.35, 51.53, -43.44)
CIE-LCHlch(34.35, 67.40, 319.87°)
OKLaboklab(45.67% 0.1284 -0.1222)
OKLCHoklch(45.67% 0.177 316.4)
XYZxyz(14.7252, 8.1760, 30.0746)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2A97 #45972A
analogous
#462A97 #7C2A97 #972A7B
triadic
#7C2A97 #977C2A #2A977C
tetradic
#7C2A97 #97462A #45972A #2A7B97
square
#7C2A97 #97462A #45972A #2A7B97
split-complementary
#7C2A97 #7B972A #2A9746
monochromatic
#2D0F37 #551D67 #7C2A97 #A337C7 #B967D5

Accessibility & contrast

On white

7.97
#7C2A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C2A97
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2A97#FFFFFF#000000##FFFFFF
##7C2A971.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#2A5395
Tritanopia (blue-blind)
#7A405E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c2a97;
/* rgb */ color: rgb(124, 42, 151);
/* oklch */ color: oklch(45.7% 0.177 316.4);
Tailwind
colors: {
  custom: {
    50: '#a56bb6',
    500: '#7c2a97',
    950: '#000000',
  },
}
SCSS
$custom: #7c2a97;
$custom-light: #a56bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2a97",
  "rgb": {
    "r": 124,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 285.138,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4567,
    "c": 0.17721,
    "h": 316.4
  },
  "luminance": 0.08175
}

Semantic roles & 50–950 ramp

primary
#7C2A97
secondary
#78BB62
accent
#E0486E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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