#7C3F97#7C3F97

#7C3F97 is a mid, vivid purple. Relative luminance 0.101; OKLCH L 48.3% C 0.147 H 314.3°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#7C3F97
RGBrgb(124, 63, 151)
HSLhsl(282, 41%, 42%)
HSVhsv(282, 58%, 59%)
CMYKcmyk(17.9%, 58.3%, 0%, 40.8%)
CIE-LABlab(37.98, 41.54, -37.64)
CIE-LCHlch(37.98, 56.05, 317.82°)
OKLaboklab(48.29% 0.1027 -0.1053)
OKLCHoklch(48.29% 0.147 314.3)
XYZxyz(15.6747, 10.0749, 30.3911)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C3F97 #5A973F
analogous
#503F97 #7C3F97 #973F86
triadic
#7C3F97 #977C3F #3F977C
tetradic
#7C3F97 #97503F #5A973F #3F8697
square
#7C3F97 #97503F #5A973F #3F8697
split-complementary
#7C3F97 #86973F #3F9750
monochromatic
#351B41 #592D6C #7C3F97 #9C59BA #B685CC

Accessibility & contrast

On white

6.97
#7C3F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#7C3F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C3F97
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C3F97#FFFFFF#000000##FFFFFF
##7C3F971.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26569A
Deuteranopia (green-blind)
#3D5B95
Tritanopia (blue-blind)
#7A4E65
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7c3f97;
/* rgb */ color: rgb(124, 63, 151);
/* oklch */ color: oklch(48.3% 0.147 314.3);
Tailwind
colors: {
  custom: {
    50: '#a477b6',
    500: '#7c3f97',
    950: '#000000',
  },
}
SCSS
$custom: #7c3f97;
$custom-light: #a477b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c3f97",
  "rgb": {
    "r": 124,
    "g": 63,
    "b": 151
  },
  "hsl": {
    "h": 281.591,
    "s": 41.121,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48293,
    "c": 0.1471,
    "h": 314.3
  },
  "luminance": 0.10074
}

Semantic roles & 50–950 ramp

primary
#7C3F97
secondary
#8EB67C
accent
#D1577C
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#0F0911
muted
#7F7B80

Preview Lab

Preview with #7C3F97

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

Preview Lab → · Contrast checker → · Palette generator →

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