#4A1248#4A1248

#4A1248 is a dark, moderate purple. Relative luminance 0.024; OKLCH L 30.1% C 0.110 H 329.4°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#4A1248
RGBrgb(74, 18, 72)
HSLhsl(302, 61%, 18%)
HSVhsv(302, 76%, 29%)
CMYKcmyk(0%, 75.7%, 2.7%, 71%)
CIE-LABlab(17.26, 33.56, -20.27)
CIE-LCHlch(17.26, 39.21, 328.87°)
OKLaboklab(30.11% 0.0946 -0.0559)
OKLCHoklch(30.11% 0.11 329.4)
XYZxyz(4.2100, 2.3566, 6.3628)
Luminance0.0236 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1248 #124A14
analogous
#30124A #4A1248 #4A122C
triadic
#4A1248 #484A12 #12484A
tetradic
#4A1248 #4A3012 #124A14 #122C4A
square
#4A1248 #4A3012 #124A14 #122C4A
split-complementary
#4A1248 #2C4A12 #124A30
monochromatic
#190618 #190618 #4A1248 #7B1E78 #AC2AA8

Accessibility & contrast

On white

14.27
#4A1248 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#4A1248 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1248
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1248#FFFFFF#000000##FFFFFF
##4A12481.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C264A
Deuteranopia (green-blind)
#212D47
Tritanopia (blue-blind)
#4D192B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4a1248;
/* rgb */ color: rgb(74, 18, 72);
/* oklch */ color: oklch(30.1% 0.110 329.4);
Tailwind
colors: {
  custom: {
    50: '#7f567b',
    500: '#4a1248',
    950: '#000000',
  },
}
SCSS
$custom: #4a1248;
$custom-light: #7f567b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1248",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 72
  },
  "hsl": {
    "h": 302.143,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.30109,
    "c": 0.10988,
    "h": 329.4
  },
  "luminance": 0.02356
}

Semantic roles & 50–950 ramp

primary
#4A1248
secondary
#358338
accent
#E44A44
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#0A0309
muted
#7C787B

Preview Lab

Preview with #4A1248

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

Preview Lab → · Contrast checker → · Palette generator →

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