#4A1258#4A1258

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

Color values

HEX#4A1258
RGBrgb(74, 18, 88)
HSLhsl(288, 66%, 21%)
HSVhsv(288, 80%, 35%)
CMYKcmyk(15.9%, 79.5%, 0%, 65.5%)
CIE-LABlab(18.34, 36.84, -29.44)
CIE-LCHlch(18.34, 47.16, 321.37°)
OKLaboklab(31.23% 0.094 -0.0827)
OKLCHoklch(31.23% 0.125 318.7)
XYZxyz(4.8016, 2.5933, 9.4783)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1258 #205812
analogous
#271258 #4A1258 #581243
triadic
#4A1258 #584A12 #12584A
tetradic
#4A1258 #582712 #205812 #124358
square
#4A1258 #582712 #205812 #124358
split-complementary
#4A1258 #435812 #125827
monochromatic
#150519 #1F0825 #4A1258 #751C8B #9F27BE

Accessibility & contrast

On white

13.83
#4A1258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1258
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1258#FFFFFF#000000##FFFFFF
##4A12581.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295A
Deuteranopia (green-blind)
#162F56
Tritanopia (blue-blind)
#4A2034
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4a1258;
/* rgb */ color: rgb(74, 18, 88);
/* oklch */ color: oklch(31.2% 0.125 318.7);
Tailwind
colors: {
  custom: {
    50: '#7f5787',
    500: '#4a1258',
    950: '#000000',
  },
}
SCSS
$custom: #4a1258;
$custom-light: #7f5787;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1258",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 288,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31226,
    "c": 0.1252,
    "h": 318.7
  },
  "luminance": 0.02593
}

Semantic roles & 50–950 ramp

primary
#4A1258
secondary
#479135
accent
#E93F61
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A030B
muted
#7C787C

Preview Lab

Preview with #4A1258

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

Preview Lab → · Contrast checker → · Palette generator →

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