#7C2CB8#7C2CB8

#7C2CB8 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.3% C 0.207 H 305.8°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#7C2CB8
RGBrgb(124, 44, 184)
HSLhsl(274, 61%, 45%)
HSVhsv(274, 76%, 72%)
CMYKcmyk(32.6%, 76.1%, 0%, 27.8%)
CIE-LABlab(37.02, 57.88, -58.92)
CIE-LCHlch(37.02, 82.59, 314.49°)
OKLaboklab(48.32% 0.1211 -0.1677)
OKLCHoklch(48.32% 0.207 305.8)
XYZxyz(17.8627, 9.5473, 46.2399)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2CB8 #68B82C
analogous
#362CB8 #7C2CB8 #B82CAE
triadic
#7C2CB8 #B87C2C #2CB87C
tetradic
#7C2CB8 #B8362C #68B82C #2CAEB8
square
#7C2CB8 #B8362C #68B82C #2CAEB8
split-complementary
#7C2CB8 #AEB82C #2CB836
monochromatic
#391455 #5B2087 #7C2CB8 #9A4DD4 #B67EE0

Accessibility & contrast

On white

7.22
#7C2CB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7C2CB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2CB8
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2CB8#FFFFFF#000000##FFFFFF
##7C2CB81.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0057B5
Tritanopia (blue-blind)
#714F71
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7c2cb8;
/* rgb */ color: rgb(124, 44, 184);
/* oklch */ color: oklch(48.3% 0.207 305.8);
Tailwind
colors: {
  custom: {
    50: '#a76ece',
    500: '#7c2cb8',
    950: '#000000',
  },
}
SCSS
$custom: #7c2cb8;
$custom-light: #a76ece;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2cb8",
  "rgb": {
    "r": 124,
    "g": 44,
    "b": 184
  },
  "hsl": {
    "h": 274.286,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48315,
    "c": 0.20681,
    "h": 305.8
  },
  "luminance": 0.09547
}

Semantic roles & 50–950 ramp

primary
#7C2CB8
secondary
#9AC977
accent
#E54388
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7C2CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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