#7C2CA8#7C2CA8

#7C2CA8 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.1% C 0.191 H 310.5°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#7C2CA8
RGBrgb(124, 44, 168)
HSLhsl(279, 58%, 42%)
HSVhsv(279, 74%, 66%)
CMYKcmyk(26.2%, 73.8%, 0%, 34.1%)
CIE-LABlab(35.82, 54.32, -51.35)
CIE-LCHlch(35.82, 74.75, 316.61°)
OKLaboklab(47.09% 0.1241 -0.1454)
OKLCHoklch(47.09% 0.191 310.5)
XYZxyz(16.2794, 8.9140, 37.9012)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2CA8 #58A82C
analogous
#3E2CA8 #7C2CA8 #A82C96
triadic
#7C2CA8 #A87C2C #2CA87C
tetradic
#7C2CA8 #A83E2C #58A82C #2C96A8
square
#7C2CA8 #A83E2C #58A82C #2C96A8
split-complementary
#7C2CA8 #96A82C #2CA83E
monochromatic
#341347 #581F78 #7C2CA8 #9D43CE #B674DB

Accessibility & contrast

On white

7.55
#7C2CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7C2CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2CA8
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2CA8#FFFFFF#000000##FFFFFF
##7C2CA81.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AC
Deuteranopia (green-blind)
#1356A5
Tritanopia (blue-blind)
#764868
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c2ca8;
/* rgb */ color: rgb(124, 44, 168);
/* oklch */ color: oklch(47.1% 0.191 310.5);
Tailwind
colors: {
  custom: {
    50: '#a66dc3',
    500: '#7c2ca8',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ca8;
$custom-light: #a66dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ca8",
  "rgb": {
    "r": 124,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 278.71,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47091,
    "c": 0.19118,
    "h": 310.5
  },
  "luminance": 0.08914
}

Semantic roles & 50–950 ramp

primary
#7C2CA8
secondary
#8CC26E
accent
#E2467D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C2CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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