#4A124C#4A124C

#4A124C is a dark, moderate purple. Relative luminance 0.024; OKLCH L 30.4% C 0.114 H 326.5°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#4A124C
RGBrgb(74, 18, 76)
HSLhsl(298, 62%, 18%)
HSVhsv(298, 76%, 30%)
CMYKcmyk(2.6%, 76.3%, 0%, 70.2%)
CIE-LABlab(17.51, 34.34, -22.62)
CIE-LCHlch(17.51, 41.12, 326.63°)
OKLaboklab(30.37% 0.0947 -0.0628)
OKLCHoklch(30.37% 0.114 326.5)
XYZxyz(4.3448, 2.4106, 7.0725)
Luminance0.0241 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A124C #144C12
analogous
#2D124C #4A124C #4C1231
triadic
#4A124C #4C4A12 #124C4A
tetradic
#4A124C #4C2D12 #144C12 #12314C
square
#4A124C #4C2D12 #144C12 #12314C
split-complementary
#4A124C #314C12 #124C2D
monochromatic
#180619 #1A061B #4A124C #7A1E7D #AA29AF

Accessibility & contrast

On white

14.17
#4A124C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#4A124C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A124C
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A124C#FFFFFF#000000##FFFFFF
##4A124C1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07264E
Deuteranopia (green-blind)
#1F2D4B
Tritanopia (blue-blind)
#4C1B2D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4a124c;
/* rgb */ color: rgb(74, 18, 76);
/* oklch */ color: oklch(30.4% 0.114 326.5);
Tailwind
colors: {
  custom: {
    50: '#7f567e',
    500: '#4a124c',
    950: '#000000',
  },
}
SCSS
$custom: #4a124c;
$custom-light: #7f567e;
$custom-dark: #000000;
JSON
{
  "hex": "#4a124c",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 76
  },
  "hsl": {
    "h": 297.931,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.30371,
    "c": 0.1136,
    "h": 326.5
  },
  "luminance": 0.0241
}

Semantic roles & 50–950 ramp

primary
#4A124C
secondary
#388535
accent
#E54349
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#0A030A
muted
#7C787C

Preview Lab

Preview with #4A124C

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

Preview Lab → · Contrast checker → · Palette generator →

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