#7C2D94#7C2D94

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

Color values

HEX#7C2D94
RGBrgb(124, 45, 148)
HSLhsl(286, 53%, 38%)
HSVhsv(286, 70%, 58%)
CMYKcmyk(16.2%, 69.6%, 0%, 42%)
CIE-LABlab(34.60, 49.64, -41.21)
CIE-LCHlch(34.60, 64.51, 320.30°)
OKLaboklab(45.79% 0.1253 -0.1156)
OKLCHoklch(45.79% 0.171 317.3)
XYZxyz(14.5951, 8.3006, 28.8446)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2D94 #45942D
analogous
#482D94 #7C2D94 #942D79
triadic
#7C2D94 #947C2D #2D947C
tetradic
#7C2D94 #94482D #45942D #2D7994
square
#7C2D94 #94482D #45942D #2D7994
split-complementary
#7C2D94 #79942D #2D9448
monochromatic
#2D1036 #551F65 #7C2D94 #A33BC3 #B96AD2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C2D94#FFFFFF#000000##FFFFFF
##7C2D941.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)
#004C97
Deuteranopia (green-blind)
#305492
Tritanopia (blue-blind)
#7B415D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c2d94;
/* rgb */ color: rgb(124, 45, 148);
/* oklch */ color: oklch(45.8% 0.171 317.3);
Tailwind
colors: {
  custom: {
    50: '#a56db4',
    500: '#7c2d94',
    950: '#000000',
  },
}
SCSS
$custom: #7c2d94;
$custom-light: #a56db4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2d94",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 148
  },
  "hsl": {
    "h": 286.019,
    "s": 53.368,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45789,
    "c": 0.17051,
    "h": 317.3
  },
  "luminance": 0.083
}

Semantic roles & 50–950 ramp

primary
#7C2D94
secondary
#78B864
accent
#DD4B6D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2D94

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

Preview Lab → · Contrast checker → · Palette generator →

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