#7C2E95#7C2E95

#7C2E95 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.0% C 0.170 H 316.8°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#7C2E95
RGBrgb(124, 46, 149)
HSLhsl(285, 53%, 38%)
HSVhsv(285, 69%, 58%)
CMYKcmyk(16.8%, 69.1%, 0%, 41.6%)
CIE-LABlab(34.82, 49.41, -41.46)
CIE-LCHlch(34.82, 64.50, 320.00°)
OKLaboklab(45.97% 0.1241 -0.1164)
OKLCHoklch(45.97% 0.17 316.8)
XYZxyz(14.7132, 8.4096, 29.2761)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2E95 #47952E
analogous
#482E95 #7C2E95 #952E7A
triadic
#7C2E95 #957C2E #2E957C
tetradic
#7C2E95 #95482E #47952E #2E7A95
square
#7C2E95 #95482E #47952E #2E7A95
split-complementary
#7C2E95 #7A952E #2E9548
monochromatic
#2E1137 #552066 #7C2E95 #A33DC3 #B96CD2

Accessibility & contrast

On white

7.83
#7C2E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7C2E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2E95
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2E95#FFFFFF#000000##FFFFFF
##7C2E951.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D98
Deuteranopia (green-blind)
#305493
Tritanopia (blue-blind)
#7B425E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7c2e95;
/* rgb */ color: rgb(124, 46, 149);
/* oklch */ color: oklch(46.0% 0.170 316.8);
Tailwind
colors: {
  custom: {
    50: '#a56db5',
    500: '#7c2e95',
    950: '#000000',
  },
}
SCSS
$custom: #7c2e95;
$custom-light: #a56db5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2e95",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 149
  },
  "hsl": {
    "h": 285.437,
    "s": 52.821,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45968,
    "c": 0.17015,
    "h": 316.8
  },
  "luminance": 0.08409
}

Semantic roles & 50–950 ramp

primary
#7C2E95
secondary
#7AB966
accent
#DC4C6F
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2E95

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

Preview Lab → · Contrast checker → · Palette generator →

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