#4A124F#4A124F

#4A124F is a dark, moderate purple. Relative luminance 0.025; OKLCH L 30.6% C 0.116 H 324.4°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#4A124F
RGBrgb(74, 18, 79)
HSLhsl(295, 63%, 19%)
HSVhsv(295, 77%, 31%)
CMYKcmyk(6.3%, 77.2%, 0%, 69%)
CIE-LABlab(17.71, 34.95, -24.36)
CIE-LCHlch(17.71, 42.60, 325.12°)
OKLaboklab(30.58% 0.0947 -0.0678)
OKLCHoklch(30.58% 0.116 324.4)
XYZxyz(4.4515, 2.4532, 7.6347)
Luminance0.0245 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A124F #174F12
analogous
#2C124F #4A124F #4F1236
triadic
#4A124F #4F4A12 #124F4A
tetradic
#4A124F #4F2C12 #174F12 #12364F
square
#4A124F #4F2C12 #174F12 #12364F
split-complementary
#4A124F #364F12 #124F2C
monochromatic
#170619 #1B071D #4A124F #791D81 #A729B3

Accessibility & contrast

On white

14.09
#4A124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A124F
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A124F#FFFFFF#000000##FFFFFF
##4A124F1.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032751
Deuteranopia (green-blind)
#1D2E4E
Tritanopia (blue-blind)
#4C1C2F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4a124f;
/* rgb */ color: rgb(74, 18, 79);
/* oklch */ color: oklch(30.6% 0.116 324.4);
Tailwind
colors: {
  custom: {
    50: '#7f5680',
    500: '#4a124f',
    950: '#000000',
  },
}
SCSS
$custom: #4a124f;
$custom-light: #7f5680;
$custom-dark: #000000;
JSON
{
  "hex": "#4a124f",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 295.082,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.30576,
    "c": 0.11644,
    "h": 324.4
  },
  "luminance": 0.02453
}

Semantic roles & 50–950 ramp

primary
#4A124F
secondary
#3C8835
accent
#E6424F
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#0A030A
muted
#7C787C

Preview Lab

Preview with #4A124F

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

Preview Lab → · Contrast checker → · Palette generator →

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