#4A074E#4A074E

#4A074E is a dark, vivid purple. Relative luminance 0.022; OKLCH L 29.6% C 0.128 H 325.5°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#4A074E
RGBrgb(74, 7, 78)
HSLhsl(297, 84%, 17%)
HSVhsv(297, 91%, 31%)
CMYKcmyk(5.1%, 91%, 0%, 69.4%)
CIE-LABlab(16.30, 38.61, -25.93)
CIE-LCHlch(16.30, 46.50, 326.12°)
OKLaboklab(29.55% 0.1054 -0.0723)
OKLCHoklch(29.55% 0.128 325.5)
XYZxyz(4.2751, 2.1582, 7.3976)
Luminance0.0216 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A074E #0B4E07
analogous
#27074E #4A074E #4E072F
triadic
#4A074E #4E4A07 #074E4A
tetradic
#4A074E #4E2707 #0B4E07 #072F4E
square
#4A074E #4E2707 #0B4E07 #072F4E
split-complementary
#4A074E #2F4E07 #074E27
monochromatic
#1B031C #1B031C #4A074E #7F0C86 #B511BE

Accessibility & contrast

On white

14.67
#4A074E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#4A074E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A074E
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A074E#FFFFFF#000000##FFFFFF
##4A074E1.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002350
Deuteranopia (green-blind)
#192B4C
Tritanopia (blue-blind)
#4C162C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #4a074e;
/* rgb */ color: rgb(74, 7, 78);
/* oklch */ color: oklch(29.6% 0.128 325.5);
Tailwind
colors: {
  custom: {
    50: '#805280',
    500: '#4a074e',
    950: '#000000',
  },
}
SCSS
$custom: #4a074e;
$custom-light: #805280;
$custom-dark: #000000;
JSON
{
  "hex": "#4a074e",
  "rgb": {
    "r": 74,
    "g": 7,
    "b": 78
  },
  "hsl": {
    "h": 296.62,
    "s": 83.529,
    "l": 16.667
  },
  "oklch": {
    "l": 0.29551,
    "c": 0.12781,
    "h": 325.5
  },
  "luminance": 0.02158
}

Semantic roles & 50–950 ramp

primary
#4A074E
secondary
#2B8C25
accent
#FA2E39
background
#F8F4F7
surface
#EFE7EE
border
#CAC3C9
text
#0A030A
muted
#7C787C

Preview Lab

Preview with #4A074E

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

Preview Lab → · Contrast checker → · Palette generator →

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