#7C1DB3#7C1DB3

#7C1DB3 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.7% C 0.216 H 308.4°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#7C1DB3
RGBrgb(124, 29, 179)
HSLhsl(278, 72%, 41%)
HSVhsv(278, 84%, 70%)
CMYKcmyk(30.7%, 83.8%, 0%, 29.8%)
CIE-LABlab(34.84, 61.95, -59.50)
CIE-LCHlch(34.84, 85.89, 316.15°)
OKLaboklab(46.67% 0.134 -0.1693)
OKLCHoklch(46.67% 0.216 308.4)
XYZxyz(16.8865, 8.4188, 43.3745)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1DB3 #54B31D
analogous
#311DB3 #7C1DB3 #B31D9F
triadic
#7C1DB3 #B37C1D #1DB37C
tetradic
#7C1DB3 #B3311D #54B31D #1D9FB3
square
#7C1DB3 #B3311D #54B31D #1D9FB3
split-complementary
#7C1DB3 #9FB31D #1DB331
monochromatic
#330C4A #58147E #7C1DB3 #9E30DD #B664E6

Accessibility & contrast

On white

7.83
#7C1DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7C1DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1DB3
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1DB3#FFFFFF#000000##FFFFFF
##7C1DB31.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#73476B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7c1db3;
/* rgb */ color: rgb(124, 29, 179);
/* oklch */ color: oklch(46.7% 0.216 308.4);
Tailwind
colors: {
  custom: {
    50: '#a867cb',
    500: '#7c1db3',
    950: '#000000',
  },
}
SCSS
$custom: #7c1db3;
$custom-light: #a867cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1db3",
  "rgb": {
    "r": 124,
    "g": 29,
    "b": 179
  },
  "hsl": {
    "h": 278,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4667,
    "c": 0.21586,
    "h": 308.4
  },
  "luminance": 0.08418
}

Semantic roles & 50–950 ramp

primary
#7C1DB3
secondary
#88CB61
accent
#EF397C
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C1DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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