#7C39B3#7C39B3

#7C39B3 is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.4% C 0.186 H 305.8°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#7C39B3
RGBrgb(124, 57, 179)
HSLhsl(273, 52%, 46%)
HSVhsv(273, 68%, 70%)
CMYKcmyk(30.7%, 68.2%, 0%, 29.8%)
CIE-LABlab(38.67, 51.02, -53.29)
CIE-LCHlch(38.67, 73.78, 313.75°)
OKLaboklab(49.37% 0.109 -0.1512)
OKLCHoklch(49.37% 0.186 305.8)
XYZxyz(17.9102, 10.4662, 43.7157)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C39B3 #70B339
analogous
#3F39B3 #7C39B3 #B339AD
triadic
#7C39B3 #B37C39 #39B37C
tetradic
#7C39B3 #B33F39 #70B339 #39ADB3
square
#7C39B3 #B33F39 #70B339 #39ADB3
split-complementary
#7C39B3 #ADB339 #39B33F
monochromatic
#3C1B56 #5C2A85 #7C39B3 #9A5ECC #B78CDA

Accessibility & contrast

On white

6.79
#7C39B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#7C39B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C39B3
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C39B3#FFFFFF#000000##FFFFFF
##7C39B31.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B7
Deuteranopia (green-blind)
#135BB0
Tritanopia (blue-blind)
#725471
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7c39b3;
/* rgb */ color: rgb(124, 57, 179);
/* oklch */ color: oklch(49.4% 0.186 305.8);
Tailwind
colors: {
  custom: {
    50: '#a674ca',
    500: '#7c39b3',
    950: '#000000',
  },
}
SCSS
$custom: #7c39b3;
$custom-light: #a674ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7c39b3",
  "rgb": {
    "r": 124,
    "g": 57,
    "b": 179
  },
  "hsl": {
    "h": 272.951,
    "s": 51.695,
    "l": 46.275
  },
  "oklch": {
    "l": 0.49369,
    "c": 0.18639,
    "h": 305.8
  },
  "luminance": 0.10466
}

Semantic roles & 50–950 ramp

primary
#7C39B3
secondary
#A1C583
accent
#DB4D8D
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7C39B3

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

Preview Lab → · Contrast checker → · Palette generator →

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