#4A1042#4A1042

#4A1042 is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.5% C 0.107 H 334.1°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#4A1042
RGBrgb(74, 16, 66)
HSLhsl(308, 64%, 18%)
HSVhsv(308, 78%, 29%)
CMYKcmyk(0%, 78.4%, 10.8%, 71%)
CIE-LABlab(16.60, 33.28, -17.14)
CIE-LCHlch(16.60, 37.44, 332.75°)
OKLaboklab(29.52% 0.0966 -0.0469)
OKLCHoklch(29.52% 0.107 334.1)
XYZxyz(3.9927, 2.2201, 5.3714)
Luminance0.0222 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1042 #104A18
analogous
#35104A #4A1042 #4A1025
triadic
#4A1042 #424A10 #10424A
tetradic
#4A1042 #4A3510 #104A18 #10254A
square
#4A1042 #4A3510 #104A18 #10254A
split-complementary
#4A1042 #254A10 #104A35
monochromatic
#190516 #190516 #4A1042 #7C1B6F #AF269C

Accessibility & contrast

On white

14.54
#4A1042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#4A1042 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1042
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1042#FFFFFF#000000##FFFFFF
##4A10421.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2443
Deuteranopia (green-blind)
#232C41
Tritanopia (blue-blind)
#4E1527
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #4a1042;
/* rgb */ color: rgb(74, 16, 66);
/* oklch */ color: oklch(29.5% 0.107 334.1);
Tailwind
colors: {
  custom: {
    50: '#7f5576',
    500: '#4a1042',
    950: '#000000',
  },
}
SCSS
$custom: #4a1042;
$custom-light: #7f5576;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1042",
  "rgb": {
    "r": 74,
    "g": 16,
    "b": 66
  },
  "hsl": {
    "h": 308.276,
    "s": 64.444,
    "l": 17.647
  },
  "oklch": {
    "l": 0.2952,
    "c": 0.10736,
    "h": 334.1
  },
  "luminance": 0.0222
}

Semantic roles & 50–950 ramp

primary
#4A1042
secondary
#32843D
accent
#E75740
background
#F7F5F7
surface
#EEE9ED
border
#C9C5C8
text
#0A0308
muted
#7C787B

Preview Lab

Preview with #4A1042

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

Preview Lab → · Contrast checker → · Palette generator →

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