#7C2DB7#7C2DB7

#7C2DB7 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.3% C 0.205 H 306.0°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#7C2DB7
RGBrgb(124, 45, 183)
HSLhsl(274, 61%, 45%)
HSVhsv(274, 75%, 72%)
CMYKcmyk(32.2%, 75.4%, 0%, 28.2%)
CIE-LABlab(37.08, 57.25, -58.23)
CIE-LCHlch(37.08, 81.66, 314.51°)
OKLaboklab(48.33% 0.1204 -0.1656)
OKLCHoklch(48.33% 0.205 306)
XYZxyz(17.7959, 9.5809, 45.7024)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2DB7 #68B72D
analogous
#372DB7 #7C2DB7 #B72DAD
triadic
#7C2DB7 #B77C2D #2DB77C
tetradic
#7C2DB7 #B7372D #68B72D #2DADB7
square
#7C2DB7 #B7372D #68B72D #2DADB7
split-complementary
#7C2DB7 #ADB72D #2DB737
monochromatic
#391555 #5B2186 #7C2DB7 #9A4ED3 #B67FDF

Accessibility & contrast

On white

7.20
#7C2DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7C2DB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2DB7
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2DB7#FFFFFF#000000##FFFFFF
##7C2DB71.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#0058B4
Tritanopia (blue-blind)
#714F70
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7c2db7;
/* rgb */ color: rgb(124, 45, 183);
/* oklch */ color: oklch(48.3% 0.205 306.0);
Tailwind
colors: {
  custom: {
    50: '#a76ecd',
    500: '#7c2db7',
    950: '#000000',
  },
}
SCSS
$custom: #7c2db7;
$custom-light: #a76ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2db7",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 274.348,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48334,
    "c": 0.20477,
    "h": 306
  },
  "luminance": 0.09581
}

Semantic roles & 50–950 ramp

primary
#7C2DB7
secondary
#9AC878
accent
#E44488
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7C2DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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