#7C2E97#7C2E97

#7C2E97 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.1% C 0.172 H 316.1°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#7C2E97
RGBrgb(124, 46, 151)
HSLhsl(285, 53%, 39%)
HSVhsv(285, 70%, 59%)
CMYKcmyk(17.9%, 69.5%, 0%, 40.8%)
CIE-LABlab(34.95, 49.83, -42.47)
CIE-LCHlch(34.95, 65.47, 319.55°)
OKLaboklab(46.1% 0.124 -0.1194)
OKLCHoklch(46.1% 0.172 316.1)
XYZxyz(14.8742, 8.4740, 30.1243)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2E97 #49972E
analogous
#472E97 #7C2E97 #972E7D
triadic
#7C2E97 #977C2E #2E977C
tetradic
#7C2E97 #97472E #49972E #2E7D97
square
#7C2E97 #97472E #49972E #2E7D97
split-complementary
#7C2E97 #7D972E #2E9747
monochromatic
#2F1139 #552068 #7C2E97 #A23EC4 #B86DD2

Accessibility & contrast

On white

7.79
#7C2E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7C2E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2E97
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2E97#FFFFFF#000000##FFFFFF
##7C2E971.007.792.697.79
#FFFFFF7.791.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#2E5495
Tritanopia (blue-blind)
#7A435F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7c2e97;
/* rgb */ color: rgb(124, 46, 151);
/* oklch */ color: oklch(46.1% 0.172 316.1);
Tailwind
colors: {
  custom: {
    50: '#a56db6',
    500: '#7c2e97',
    950: '#000000',
  },
}
SCSS
$custom: #7c2e97;
$custom-light: #a56db6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2e97",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 284.571,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46102,
    "c": 0.1721,
    "h": 316.1
  },
  "luminance": 0.08473
}

Semantic roles & 50–950 ramp

primary
#7C2E97
secondary
#7CBA67
accent
#DD4B71
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2E97

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

Preview Lab → · Contrast checker → · Palette generator →

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