#7C2CBA#7C2CBA

#7C2CBA is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.5% C 0.209 H 305.3°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#7C2CBA
RGBrgb(124, 44, 186)
HSLhsl(274, 62%, 45%)
HSVhsv(274, 76%, 73%)
CMYKcmyk(33.3%, 76.3%, 0%, 27.1%)
CIE-LABlab(37.17, 58.33, -59.85)
CIE-LCHlch(37.17, 83.57, 314.26°)
OKLaboklab(48.47% 0.1206 -0.1704)
OKLCHoklch(48.47% 0.209 305.3)
XYZxyz(18.0738, 9.6317, 47.3518)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2CBA #6ABA2C
analogous
#352CBA #7C2CBA #BA2CB1
triadic
#7C2CBA #BA7C2C #2CBA7C
tetradic
#7C2CBA #BA352C #6ABA2C #2CB1BA
square
#7C2CBA #BA352C #6ABA2C #2CB1BA
split-complementary
#7C2CBA #B1BA2C #2CBA35
monochromatic
#3A1557 #5B2089 #7C2CBA #9A4ED5 #B680E1

Accessibility & contrast

On white

7.18
#7C2CBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7C2CBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2CBA
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2CBA#FFFFFF#000000##FFFFFF
##7C2CBA1.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BE
Deuteranopia (green-blind)
#0058B7
Tritanopia (blue-blind)
#705072
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7c2cba;
/* rgb */ color: rgb(124, 44, 186);
/* oklch */ color: oklch(48.5% 0.209 305.3);
Tailwind
colors: {
  custom: {
    50: '#a86ed0',
    500: '#7c2cba',
    950: '#000000',
  },
}
SCSS
$custom: #7c2cba;
$custom-light: #a86ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2cba",
  "rgb": {
    "r": 124,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 273.803,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48473,
    "c": 0.20877,
    "h": 305.3
  },
  "luminance": 0.09632
}

Semantic roles & 50–950 ramp

primary
#7C2CBA
secondary
#9CCA78
accent
#E5438A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7C2CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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