#7C3DAB#7C3DAB

#7C3DAB is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.3% C 0.172 H 307.6°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#7C3DAB
RGBrgb(124, 61, 171)
HSLhsl(274, 47%, 45%)
HSVhsv(274, 64%, 67%)
CMYKcmyk(27.5%, 64.3%, 0%, 32.9%)
CIE-LABlab(38.83, 47.17, -48.27)
CIE-LCHlch(38.83, 67.49, 314.34°)
OKLaboklab(49.32% 0.1051 -0.1365)
OKLCHoklch(49.32% 0.172 307.6)
XYZxyz(17.3301, 10.5631, 39.6461)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C3DAB #6CAB3D
analogous
#453DAB #7C3DAB #AB3DA3
triadic
#7C3DAB #AB7C3D #3DAB7C
tetradic
#7C3DAB #AB453D #6CAB3D #3DA3AB
square
#7C3DAB #AB453D #6CAB3D #3DA3AB
split-complementary
#7C3DAB #A3AB3D #3DAB45
monochromatic
#3B1D51 #5B2D7E #7C3DAB #9A5FC6 #B78CD6

Accessibility & contrast

On white

6.75
#7C3DAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#7C3DAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C3DAB
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C3DAB#FFFFFF#000000##FFFFFF
##7C3DAB1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AE
Deuteranopia (green-blind)
#285CA9
Tritanopia (blue-blind)
#75546E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7c3dab;
/* rgb */ color: rgb(124, 61, 171);
/* oklch */ color: oklch(49.3% 0.172 307.6);
Tailwind
colors: {
  custom: {
    50: '#a676c5',
    500: '#7c3dab',
    950: '#000000',
  },
}
SCSS
$custom: #7c3dab;
$custom-light: #a676c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c3dab",
  "rgb": {
    "r": 124,
    "g": 61,
    "b": 171
  },
  "hsl": {
    "h": 274.364,
    "s": 47.414,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49316,
    "c": 0.17224,
    "h": 307.6
  },
  "luminance": 0.10563
}

Semantic roles & 50–950 ramp

primary
#7C3DAB
secondary
#9DC183
accent
#D7518A
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7C3DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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