#7C4E98#7C4E98

#7C4E98 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 50.7% C 0.123 H 311.4°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#7C4E98
RGBrgb(124, 78, 152)
HSLhsl(277, 32%, 45%)
HSVhsv(277, 49%, 60%)
CMYKcmyk(18.4%, 48.7%, 0%, 40.4%)
CIE-LABlab(41.22, 33.43, -33.11)
CIE-LCHlch(41.22, 47.06, 315.28°)
OKLaboklab(50.71% 0.0813 -0.0922)
OKLCHoklch(50.71% 0.123 311.4)
XYZxyz(16.7031, 12.0012, 31.1362)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4E98 #6A984E
analogous
#574E98 #7C4E98 #984E8F
triadic
#7C4E98 #987C4E #4E987C
tetradic
#7C4E98 #98574E #6A984E #4E8F98
square
#7C4E98 #98574E #6A984E #4E8F98
split-complementary
#7C4E98 #8F984E #4E9857
monochromatic
#3A2447 #5B3970 #7C4E98 #9A6EB5 #B697CA

Accessibility & contrast

On white

6.18
#7C4E98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#7C4E98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C4E98
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4E98#FFFFFF#000000##FFFFFF
##7C4E981.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5F9B
Deuteranopia (green-blind)
#4A6296
Tritanopia (blue-blind)
#795A6C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7c4e98;
/* rgb */ color: rgb(124, 78, 152);
/* oklch */ color: oklch(50.7% 0.123 311.4);
Tailwind
colors: {
  custom: {
    50: '#a381b6',
    500: '#7c4e98',
    950: '#000000',
  },
}
SCSS
$custom: #7c4e98;
$custom-light: #a381b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4e98",
  "rgb": {
    "r": 124,
    "g": 78,
    "b": 152
  },
  "hsl": {
    "h": 277.297,
    "s": 32.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50705,
    "c": 0.12298,
    "h": 311.4
  },
  "luminance": 0.12001
}

Semantic roles & 50–950 ramp

primary
#7C4E98
secondary
#9CB68C
accent
#C85F87
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #7C4E98

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

Preview Lab → · Contrast checker → · Palette generator →

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