#7C2DB1#7C2DB1

#7C2DB1 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.9% C 0.199 H 307.7°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#7C2DB1
RGBrgb(124, 45, 177)
HSLhsl(276, 59%, 44%)
HSVhsv(276, 75%, 69%)
CMYKcmyk(29.9%, 74.6%, 0%, 30.6%)
CIE-LABlab(36.62, 55.90, -55.41)
CIE-LCHlch(36.62, 78.71, 315.25°)
OKLaboklab(47.87% 0.1216 -0.1573)
OKLCHoklch(47.87% 0.199 307.7)
XYZxyz(17.1847, 9.3364, 42.4833)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2DB1 #62B12D
analogous
#3A2DB1 #7C2DB1 #B12DA4
triadic
#7C2DB1 #B17C2D #2DB17C
tetradic
#7C2DB1 #B13A2D #62B12D #2DA4B1
square
#7C2DB1 #B13A2D #62B12D #2DA4B1
split-complementary
#7C2DB1 #A4B12D #2DB13A
monochromatic
#38144F #5A2180 #7C2DB1 #9B4AD1 #B67BDD

Accessibility & contrast

On white

7.32
#7C2DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7C2DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2DB1
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2DB1#FFFFFF#000000##FFFFFF
##7C2DB11.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0057AE
Tritanopia (blue-blind)
#734D6D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7c2db1;
/* rgb */ color: rgb(124, 45, 177);
/* oklch */ color: oklch(47.9% 0.199 307.7);
Tailwind
colors: {
  custom: {
    50: '#a76ec9',
    500: '#7c2db1',
    950: '#000000',
  },
}
SCSS
$custom: #7c2db1;
$custom-light: #a76ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2db1",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 177
  },
  "hsl": {
    "h": 275.909,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4787,
    "c": 0.19886,
    "h": 307.7
  },
  "luminance": 0.09336
}

Semantic roles & 50–950 ramp

primary
#7C2DB1
secondary
#95C674
accent
#E34584
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C2DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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