#4A1259#4A1259

#4A1259 is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.3% C 0.126 H 318.1°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#4A1259
RGBrgb(74, 18, 89)
HSLhsl(287, 66%, 21%)
HSVhsv(287, 80%, 35%)
CMYKcmyk(16.9%, 79.8%, 0%, 65.1%)
CIE-LABlab(18.41, 37.06, -29.99)
CIE-LCHlch(18.41, 47.67, 321.01°)
OKLaboklab(31.3% 0.0939 -0.0843)
OKLCHoklch(31.3% 0.126 318.1)
XYZxyz(4.8433, 2.6099, 9.6979)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1259 #215912
analogous
#261259 #4A1259 #591244
triadic
#4A1259 #594A12 #12594A
tetradic
#4A1259 #592612 #215912 #124459
square
#4A1259 #592612 #215912 #124459
split-complementary
#4A1259 #445912 #125926
monochromatic
#150519 #200826 #4A1259 #741C8C #9F27BF

Accessibility & contrast

On white

13.80
#4A1259 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#4A1259 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1259
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1259#FFFFFF#000000##FFFFFF
##4A12591.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295B
Deuteranopia (green-blind)
#152F57
Tritanopia (blue-blind)
#4A2134
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4a1259;
/* rgb */ color: rgb(74, 18, 89);
/* oklch */ color: oklch(31.3% 0.126 318.1);
Tailwind
colors: {
  custom: {
    50: '#7f5788',
    500: '#4a1259',
    950: '#000000',
  },
}
SCSS
$custom: #4a1259;
$custom-light: #7f5788;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1259",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 89
  },
  "hsl": {
    "h": 287.324,
    "s": 66.355,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31302,
    "c": 0.1262,
    "h": 318.1
  },
  "luminance": 0.0261
}

Semantic roles & 50–950 ramp

primary
#4A1259
secondary
#499235
accent
#E93F63
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A030B
muted
#7C787C

Preview Lab

Preview with #4A1259

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

Preview Lab → · Contrast checker → · Palette generator →

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