#7C2CA0#7C2CA0

#7C2CA0 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.5% C 0.183 H 313.1°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#7C2CA0
RGBrgb(124, 44, 160)
HSLhsl(281, 57%, 40%)
HSVhsv(281, 73%, 63%)
CMYKcmyk(22.5%, 72.5%, 0%, 37.3%)
CIE-LABlab(35.25, 52.59, -47.45)
CIE-LCHlch(35.25, 70.83, 317.94°)
OKLaboklab(46.51% 0.1253 -0.134)
OKLCHoklch(46.51% 0.183 313.1)
XYZxyz(15.5569, 8.6250, 34.0962)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2CA0 #50A02C
analogous
#422CA0 #7C2CA0 #A02C8A
triadic
#7C2CA0 #A07C2C #2CA07C
tetradic
#7C2CA0 #A0422C #50A02C #2C8AA0
square
#7C2CA0 #A0422C #50A02C #2C8AA0
split-complementary
#7C2CA0 #8AA02C #2CA042
monochromatic
#321240 #571F70 #7C2CA0 #9F3FCA #B76FD7

Accessibility & contrast

On white

7.71
#7C2CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7C2CA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2CA0
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2CA0#FFFFFF#000000##FFFFFF
##7C2CA01.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA3
Deuteranopia (green-blind)
#21559D
Tritanopia (blue-blind)
#784563
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7c2ca0;
/* rgb */ color: rgb(124, 44, 160);
/* oklch */ color: oklch(46.5% 0.183 313.1);
Tailwind
colors: {
  custom: {
    50: '#a66dbd',
    500: '#7c2ca0',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ca0;
$custom-light: #a66dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ca0",
  "rgb": {
    "r": 124,
    "g": 44,
    "b": 160
  },
  "hsl": {
    "h": 281.379,
    "s": 56.863,
    "l": 40
  },
  "oklch": {
    "l": 0.4651,
    "c": 0.1834,
    "h": 313.1
  },
  "luminance": 0.08625
}

Semantic roles & 50–950 ramp

primary
#7C2CA0
secondary
#84BF69
accent
#E04877
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C2CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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