#7C407B#7C407B

#7C407B is a mid, moderate purple. Relative luminance 0.094; OKLCH L 46.9% C 0.116 H 327.8°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#7C407B
RGBrgb(124, 64, 123)
HSLhsl(301, 32%, 37%)
HSVhsv(301, 48%, 49%)
CMYKcmyk(0%, 48.4%, 0.8%, 51.4%)
CIE-LABlab(36.71, 35.09, -22.47)
CIE-LCHlch(36.71, 41.67, 327.36°)
OKLaboklab(46.88% 0.0978 -0.0615)
OKLCHoklch(46.88% 0.116 327.8)
XYZxyz(13.7205, 9.3827, 19.8234)
Luminance0.0938 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C407B #407C41
analogous
#5F407C #7C407B #7C405D
triadic
#7C407B #7B7C40 #407B7C
tetradic
#7C407B #7C5F40 #407C41 #405D7C
square
#7C407B #7C5F40 #407C41 #405D7C
split-complementary
#7C407B #5D7C40 #407C5F
monochromatic
#2B162B #542B53 #7C407B #A455A3 #BB7BBA

Accessibility & contrast

On white

7.30
#7C407B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7C407B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C407B
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C407B#FFFFFF#000000##FFFFFF
##7C407B1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B517D
Deuteranopia (green-blind)
#4C5979
Tritanopia (blue-blind)
#7F4658
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7c407b;
/* rgb */ color: rgb(124, 64, 123);
/* oklch */ color: oklch(46.9% 0.116 327.8);
Tailwind
colors: {
  custom: {
    50: '#a377a1',
    500: '#7c407b',
    950: '#000000',
  },
}
SCSS
$custom: #7c407b;
$custom-light: #a377a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c407b",
  "rgb": {
    "r": 124,
    "g": 64,
    "b": 123
  },
  "hsl": {
    "h": 301,
    "s": 31.915,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46882,
    "c": 0.11551,
    "h": 327.8
  },
  "luminance": 0.09382
}

Semantic roles & 50–950 ramp

primary
#7C407B
secondary
#72A673
accent
#C86160
background
#FAF7F9
surface
#F4EDF2
border
#CEC8CC
text
#0F090F
muted
#7F7B7E

Preview Lab

Preview with #7C407B

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

Preview Lab → · Contrast checker → · Palette generator →

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