#7C2D95#7C2D95

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

Color values

HEX#7C2D95
RGBrgb(124, 45, 149)
HSLhsl(286, 54%, 38%)
HSVhsv(286, 70%, 58%)
CMYKcmyk(16.8%, 69.8%, 0%, 41.6%)
CIE-LABlab(34.67, 49.85, -41.71)
CIE-LCHlch(34.67, 65.00, 320.08°)
OKLaboklab(45.86% 0.1252 -0.1171)
OKLCHoklch(45.86% 0.171 316.9)
XYZxyz(14.6746, 8.3324, 29.2633)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2D95 #46952D
analogous
#482D95 #7C2D95 #952D7A
triadic
#7C2D95 #957C2D #2D957C
tetradic
#7C2D95 #95482D #46952D #2D7A95
square
#7C2D95 #95482D #46952D #2D7A95
split-complementary
#7C2D95 #7A952D #2D9548
monochromatic
#2E1137 #551F66 #7C2D95 #A33BC4 #B96AD2

Accessibility & contrast

On white

7.88
#7C2D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7C2D95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2D95
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2D95#FFFFFF#000000##FFFFFF
##7C2D951.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D98
Deuteranopia (green-blind)
#2F5493
Tritanopia (blue-blind)
#7B415D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c2d95;
/* rgb */ color: rgb(124, 45, 149);
/* oklch */ color: oklch(45.9% 0.171 316.9);
Tailwind
colors: {
  custom: {
    50: '#a56db5',
    500: '#7c2d95',
    950: '#000000',
  },
}
SCSS
$custom: #7c2d95;
$custom-light: #a56db5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2d95",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 149
  },
  "hsl": {
    "h": 285.577,
    "s": 53.608,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45856,
    "c": 0.17147,
    "h": 316.9
  },
  "luminance": 0.08332
}

Semantic roles & 50–950 ramp

primary
#7C2D95
secondary
#79B965
accent
#DD4B6E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2D95

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

Preview Lab → · Contrast checker → · Palette generator →

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