#7C1E9D#7C1E9D

#7C1E9D is a mid, vivid purple. Relative luminance 0.076; OKLCH L 45.0% C 0.196 H 315.1°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#7C1E9D
RGBrgb(124, 30, 157)
HSLhsl(284, 68%, 37%)
HSVhsv(284, 81%, 62%)
CMYKcmyk(21%, 80.9%, 0%, 38.4%)
CIE-LABlab(33.24, 57.13, -48.88)
CIE-LCHlch(33.24, 75.18, 319.45°)
OKLaboklab(45.02% 0.1386 -0.1381)
OKLCHoklch(45.02% 0.196 315.1)
XYZxyz(14.8613, 7.6485, 32.5852)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1E9D #3F9D1E
analogous
#3C1E9D #7C1E9D #9D1E7F
triadic
#7C1E9D #9D7C1E #1E9D7C
tetradic
#7C1E9D #9D3C1E #3F9D1E #1E7F9D
square
#7C1E9D #9D3C1E #3F9D1E #1E7F9D
split-complementary
#7C1E9D #7F9D1E #1E9D3C
monochromatic
#2B0A36 #53146A #7C1E9D #A528D0 #BB57DF

Accessibility & contrast

On white

8.30
#7C1E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7C1E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1E9D
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1E9D#FFFFFF#000000##FFFFFF
##7C1E9D1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#17509A
Tritanopia (blue-blind)
#793D5E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7c1e9d;
/* rgb */ color: rgb(124, 30, 157);
/* oklch */ color: oklch(45.0% 0.196 315.1);
Tailwind
colors: {
  custom: {
    50: '#a666bb',
    500: '#7c1e9d',
    950: '#000000',
  },
}
SCSS
$custom: #7c1e9d;
$custom-light: #a666bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1e9d",
  "rgb": {
    "r": 124,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 284.409,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4502,
    "c": 0.19561,
    "h": 315.1
  },
  "luminance": 0.07648
}

Semantic roles & 50–950 ramp

primary
#7C1E9D
secondary
#71C254
accent
#EB3D6A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C1E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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