#7C2BA3#7C2BA3

#7C2BA3 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.6% C 0.187 H 312.2°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#7C2BA3
RGBrgb(124, 43, 163)
HSLhsl(281, 58%, 40%)
HSVhsv(281, 74%, 64%)
CMYKcmyk(23.9%, 73.6%, 0%, 36.1%)
CIE-LABlab(35.32, 53.65, -49.15)
CIE-LCHlch(35.32, 72.76, 317.50°)
OKLaboklab(46.62% 0.1259 -0.1389)
OKLCHoklch(46.62% 0.187 312.2)
XYZxyz(15.7857, 8.6576, 35.4828)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2BA3 #52A32B
analogous
#402BA3 #7C2BA3 #A32B8E
triadic
#7C2BA3 #A37C2B #2BA37C
tetradic
#7C2BA3 #A3402B #52A32B #2B8EA3
square
#7C2BA3 #A3402B #52A32B #2B8EA3
split-complementary
#7C2BA3 #8EA32B #2BA340
monochromatic
#321142 #571E73 #7C2BA3 #9E3FCC #B76FD9

Accessibility & contrast

On white

7.69
#7C2BA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7C2BA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2BA3
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2BA3#FFFFFF#000000##FFFFFF
##7C2BA31.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA6
Deuteranopia (green-blind)
#1C55A0
Tritanopia (blue-blind)
#774665
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7c2ba3;
/* rgb */ color: rgb(124, 43, 163);
/* oklch */ color: oklch(46.6% 0.187 312.2);
Tailwind
colors: {
  custom: {
    50: '#a66cbf',
    500: '#7c2ba3',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ba3;
$custom-light: #a66cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ba3",
  "rgb": {
    "r": 124,
    "g": 43,
    "b": 163
  },
  "hsl": {
    "h": 280.5,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46623,
    "c": 0.18749,
    "h": 312.2
  },
  "luminance": 0.08657
}

Semantic roles & 50–950 ramp

primary
#7C2BA3
secondary
#86C06A
accent
#E14679
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C2BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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