#7C2CA2#7C2CA2

#7C2CA2 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.7% C 0.185 H 312.4°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#7C2CA2
RGBrgb(124, 44, 162)
HSLhsl(281, 57%, 40%)
HSVhsv(281, 73%, 64%)
CMYKcmyk(23.5%, 72.8%, 0%, 36.5%)
CIE-LABlab(35.39, 53.02, -48.43)
CIE-LCHlch(35.39, 71.81, 317.59°)
OKLaboklab(46.65% 0.125 -0.1368)
OKLCHoklch(46.65% 0.185 312.4)
XYZxyz(15.7333, 8.6955, 35.0250)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2CA2 #52A22C
analogous
#412CA2 #7C2CA2 #A22C8D
triadic
#7C2CA2 #A27C2C #2CA27C
tetradic
#7C2CA2 #A2412C #52A22C #2C8DA2
square
#7C2CA2 #A2412C #52A22C #2C8DA2
split-complementary
#7C2CA2 #8DA22C #2CA241
monochromatic
#321242 #571F72 #7C2CA2 #9E40CB #B770D8

Accessibility & contrast

On white

7.67
#7C2CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7C2CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2CA2
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2CA2#FFFFFF#000000##FFFFFF
##7C2CA21.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#1F559F
Tritanopia (blue-blind)
#784664
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7c2ca2;
/* rgb */ color: rgb(124, 44, 162);
/* oklch */ color: oklch(46.7% 0.185 312.4);
Tailwind
colors: {
  custom: {
    50: '#a66dbe',
    500: '#7c2ca2',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ca2;
$custom-light: #a66dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ca2",
  "rgb": {
    "r": 124,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 280.678,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46653,
    "c": 0.18534,
    "h": 312.4
  },
  "luminance": 0.08695
}

Semantic roles & 50–950 ramp

primary
#7C2CA2
secondary
#86BF6A
accent
#E14779
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C2CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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