#7C2CDC#7C2CDC

#7C2CDC is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.3% C 0.242 H 297.4°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#7C2CDC
RGBrgb(124, 44, 220)
HSLhsl(267, 72%, 52%)
HSVhsv(267, 80%, 86%)
CMYKcmyk(43.6%, 80%, 0%, 13.7%)
CIE-LABlab(40.00, 66.19, -74.98)
CIE-LCHlch(40.00, 100.02, 311.44°)
OKLaboklab(51.32% 0.1114 -0.2148)
OKLCHoklch(51.32% 0.242 297.4)
XYZxyz(22.1277, 11.2533, 68.7025)
Luminance0.1125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2CDC #8CDC2C
analogous
#2C34DC #7C2CDC #D42CDC
triadic
#7C2CDC #DC7C2C #2CDC7C
tetradic
#7C2CDC #DC2C34 #8CDC2C #2CDCD4
square
#7C2CDC #DC2C34 #8CDC2C #2CDCD4
split-complementary
#7C2CDC #DCD42C #34DC2C
monochromatic
#421479 #5F1DAE #7C2CDC #9D60E5 #BD95ED

Accessibility & contrast

On white

6.46
#7C2CDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#7C2CDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C2CDC
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2CDC#FFFFFF#000000##FFFFFF
##7C2CDC1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FE1
Deuteranopia (green-blind)
#005CD9
Tritanopia (blue-blind)
#625F85
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7c2cdc;
/* rgb */ color: rgb(124, 44, 220);
/* oklch */ color: oklch(51.3% 0.242 297.4);
Tailwind
colors: {
  custom: {
    50: '#ab70e8',
    500: '#7c2cdc',
    950: '#000000',
  },
}
SCSS
$custom: #7c2cdc;
$custom-light: #ab70e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2cdc",
  "rgb": {
    "r": 124,
    "g": 44,
    "b": 220
  },
  "hsl": {
    "h": 267.273,
    "s": 71.545,
    "l": 51.765
  },
  "oklch": {
    "l": 0.5132,
    "c": 0.24196,
    "h": 297.4
  },
  "luminance": 0.11254
}

Semantic roles & 50–950 ramp

primary
#7C2CDC
secondary
#B5D98B
accent
#EE3A9C
background
#FBF7FE
surface
#F6EDFD
border
#D0C8D5
text
#110816
muted
#807B84

Preview Lab

Preview with #7C2CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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