#4C074E#4C074E

#4C074E is a dark, vivid purple. Relative luminance 0.022; OKLCH L 29.9% C 0.129 H 326.9°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#4C074E
RGBrgb(76, 7, 78)
HSLhsl(298, 84%, 17%)
HSVhsv(298, 91%, 31%)
CMYKcmyk(2.6%, 91%, 0%, 69.4%)
CIE-LABlab(16.69, 39.04, -25.27)
CIE-LCHlch(16.69, 46.50, 327.09°)
OKLaboklab(29.91% 0.1079 -0.0703)
OKLCHoklch(29.91% 0.129 326.9)
XYZxyz(4.4315, 2.2388, 7.4050)
Luminance0.0224 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C074E #094E07
analogous
#29074E #4C074E #4E072D
triadic
#4C074E #4E4C07 #074E4C
tetradic
#4C074E #4E2907 #094E07 #072D4E
square
#4C074E #4E2907 #094E07 #072D4E
split-complementary
#4C074E #2D4E07 #074E29
monochromatic
#1B031C #1B031C #4C074E #830C86 #B911BE

Accessibility & contrast

On white

14.50
#4C074E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#4C074E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C074E
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C074E#FFFFFF#000000##FFFFFF
##4C074E1.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002450
Deuteranopia (green-blind)
#1B2C4C
Tritanopia (blue-blind)
#4E152C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #4c074e;
/* rgb */ color: rgb(76, 7, 78);
/* oklch */ color: oklch(29.9% 0.129 326.9);
Tailwind
colors: {
  custom: {
    50: '#815280',
    500: '#4c074e',
    950: '#000000',
  },
}
SCSS
$custom: #4c074e;
$custom-light: #815280;
$custom-dark: #000000;
JSON
{
  "hex": "#4c074e",
  "rgb": {
    "r": 76,
    "g": 7,
    "b": 78
  },
  "hsl": {
    "h": 298.31,
    "s": 83.529,
    "l": 16.667
  },
  "oklch": {
    "l": 0.29907,
    "c": 0.12875,
    "h": 326.9
  },
  "luminance": 0.02239
}

Semantic roles & 50–950 ramp

primary
#4C074E
secondary
#288C25
accent
#FA2E34
background
#F8F4F7
surface
#EFE8EE
border
#CAC4C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4C074E

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

Preview Lab → · Contrast checker → · Palette generator →

#4C074E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva