#4A1257#4A1257

#4A1257 is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.2% C 0.124 H 319.3°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#4A1257
RGBrgb(74, 18, 87)
HSLhsl(289, 66%, 21%)
HSVhsv(289, 79%, 34%)
CMYKcmyk(14.9%, 79.3%, 0%, 65.9%)
CIE-LABlab(18.26, 36.62, -28.88)
CIE-LCHlch(18.26, 46.64, 321.74°)
OKLaboklab(31.15% 0.0941 -0.081)
OKLCHoklch(31.15% 0.124 319.3)
XYZxyz(4.7604, 2.5768, 9.2616)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1257 #1F5712
analogous
#281257 #4A1257 #571241
triadic
#4A1257 #574A12 #12574A
tetradic
#4A1257 #572812 #1F5712 #124157
square
#4A1257 #572812 #1F5712 #124157
split-complementary
#4A1257 #415712 #125728
monochromatic
#160519 #1F0824 #4A1257 #751C8A #A027BC

Accessibility & contrast

On white

13.86
#4A1257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1257
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1257#FFFFFF#000000##FFFFFF
##4A12571.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002959
Deuteranopia (green-blind)
#172E55
Tritanopia (blue-blind)
#4A2033
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4a1257;
/* rgb */ color: rgb(74, 18, 87);
/* oklch */ color: oklch(31.2% 0.124 319.3);
Tailwind
colors: {
  custom: {
    50: '#7f5787',
    500: '#4a1257',
    950: '#000000',
  },
}
SCSS
$custom: #4a1257;
$custom-light: #7f5787;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1257",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 288.696,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31151,
    "c": 0.12422,
    "h": 319.3
  },
  "luminance": 0.02577
}

Semantic roles & 50–950 ramp

primary
#4A1257
secondary
#469035
accent
#E93F5F
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A030B
muted
#7C787C

Preview Lab

Preview with #4A1257

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

Preview Lab → · Contrast checker → · Palette generator →

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