#7C2E8A#7C2E8A

#7C2E8A is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.3% C 0.160 H 321.2°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#7C2E8A
RGBrgb(124, 46, 138)
HSLhsl(291, 50%, 36%)
HSVhsv(291, 67%, 54%)
CMYKcmyk(10.1%, 66.7%, 0%, 45.9%)
CIE-LABlab(34.14, 47.16, -35.81)
CIE-LCHlch(34.14, 59.22, 322.79°)
OKLaboklab(45.26% 0.1244 -0.0999)
OKLCHoklch(45.26% 0.16 321.2)
XYZxyz(13.8761, 8.0748, 24.8675)
Luminance0.0807 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2E8A #3C8A2E
analogous
#4E2E8A #7C2E8A #8A2E6A
triadic
#7C2E8A #8A7C2E #2E8A7C
tetradic
#7C2E8A #8A4E2E #3C8A2E #2E6A8A
square
#7C2E8A #8A4E2E #3C8A2E #2E6A8A
split-complementary
#7C2E8A #6A8A2E #2E8A4E
monochromatic
#2A0F2E #531F5C #7C2E8A #A53DB8 #BD66CC

Accessibility & contrast

On white

8.03
#7C2E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7C2E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2E8A
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2E8A#FFFFFF#000000##FFFFFF
##7C2E8A1.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154B8D
Deuteranopia (green-blind)
#385388
Tritanopia (blue-blind)
#7D3D58
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7c2e8a;
/* rgb */ color: rgb(124, 46, 138);
/* oklch */ color: oklch(45.3% 0.160 321.2);
Tailwind
colors: {
  custom: {
    50: '#a56dac',
    500: '#7c2e8a',
    950: '#000000',
  },
}
SCSS
$custom: #7c2e8a;
$custom-light: #a56dac;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2e8a",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 290.87,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45257,
    "c": 0.15954,
    "h": 321.2
  },
  "luminance": 0.08074
}

Semantic roles & 50–950 ramp

primary
#7C2E8A
secondary
#6DB361
accent
#DA4E63
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C2E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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