#7C40A2#7C40A2

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

Color values

HEX#7C40A2
RGBrgb(124, 64, 162)
HSLhsl(277, 43%, 44%)
HSVhsv(277, 60%, 64%)
CMYKcmyk(23.5%, 60.5%, 0%, 36.5%)
CIE-LABlab(38.83, 43.52, -42.91)
CIE-LCHlch(38.83, 61.11, 315.41°)
OKLaboklab(49.13% 0.1016 -0.1207)
OKLCHoklch(49.13% 0.158 310.1)
XYZxyz(16.6659, 10.5608, 35.3359)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C40A2 #66A240
analogous
#4B40A2 #7C40A2 #A24097
triadic
#7C40A2 #A27C40 #40A27C
tetradic
#7C40A2 #A24B40 #66A240 #4097A2
square
#7C40A2 #A24B40 #66A240 #4097A2
split-complementary
#7C40A2 #97A240 #40A24B
monochromatic
#391D4A #5A2F76 #7C40A2 #9A5FC0 #B68BD1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C40A2#FFFFFF#000000##FFFFFF
##7C40A21.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)
#1A59A5
Deuteranopia (green-blind)
#355CA0
Tritanopia (blue-blind)
#77526B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7c40a2;
/* rgb */ color: rgb(124, 64, 162);
/* oklch */ color: oklch(49.1% 0.158 310.1);
Tailwind
colors: {
  custom: {
    50: '#a578be',
    500: '#7c40a2',
    950: '#000000',
  },
}
SCSS
$custom: #7c40a2;
$custom-light: #a578be;
$custom-dark: #000000;
JSON
{
  "hex": "#7c40a2",
  "rgb": {
    "r": 124,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 276.735,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49129,
    "c": 0.15779,
    "h": 310.1
  },
  "luminance": 0.10561
}

Semantic roles & 50–950 ramp

primary
#7C40A2
secondary
#98BC82
accent
#D35586
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #7C40A2

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

Preview Lab → · Contrast checker → · Palette generator →

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