#4A124E#4A124E

#4A124E is a dark, moderate purple. Relative luminance 0.024; OKLCH L 30.5% C 0.115 H 325.1°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#4A124E
RGBrgb(74, 18, 78)
HSLhsl(296, 63%, 19%)
HSVhsv(296, 77%, 31%)
CMYKcmyk(5.1%, 76.9%, 0%, 69.4%)
CIE-LABlab(17.64, 34.74, -23.78)
CIE-LCHlch(17.64, 42.10, 325.61°)
OKLaboklab(30.51% 0.0947 -0.0661)
OKLCHoklch(30.51% 0.115 325.1)
XYZxyz(4.4154, 2.4388, 7.4444)
Luminance0.0244 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A124E #164E12
analogous
#2C124E #4A124E #4E1234
triadic
#4A124E #4E4A12 #124E4A
tetradic
#4A124E #4E2C12 #164E12 #12344E
square
#4A124E #4E2C12 #164E12 #12344E
split-complementary
#4A124E #344E12 #124E2C
monochromatic
#180619 #1B071C #4A124E #791D80 #A829B1

Accessibility & contrast

On white

14.11
#4A124E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#4A124E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A124E
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A124E#FFFFFF#000000##FFFFFF
##4A124E1.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042750
Deuteranopia (green-blind)
#1E2E4D
Tritanopia (blue-blind)
#4C1C2E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4a124e;
/* rgb */ color: rgb(74, 18, 78);
/* oklch */ color: oklch(30.5% 0.115 325.1);
Tailwind
colors: {
  custom: {
    50: '#7f5680',
    500: '#4a124e',
    950: '#000000',
  },
}
SCSS
$custom: #4a124e;
$custom-light: #7f5680;
$custom-dark: #000000;
JSON
{
  "hex": "#4a124e",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 78
  },
  "hsl": {
    "h": 296,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.30507,
    "c": 0.11549,
    "h": 325.1
  },
  "luminance": 0.02439
}

Semantic roles & 50–950 ramp

primary
#4A124E
secondary
#3A8735
accent
#E6424D
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#0A030A
muted
#7C787C

Preview Lab

Preview with #4A124E

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

Preview Lab → · Contrast checker → · Palette generator →

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