#4A0848#4A0848

#4A0848 is a dark, vivid purple. Relative luminance 0.021; OKLCH L 29.2% C 0.122 H 329.6°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#4A0848
RGBrgb(74, 8, 72)
HSLhsl(302, 80%, 16%)
HSVhsv(302, 89%, 29%)
CMYKcmyk(0%, 89.2%, 2.7%, 71%)
CIE-LABlab(15.99, 37.18, -22.28)
CIE-LCHlch(15.99, 43.34, 329.07°)
OKLaboklab(29.2% 0.1049 -0.0617)
OKLCHoklch(29.2% 0.122 329.6)
XYZxyz(4.0805, 2.0977, 6.3196)
Luminance0.0210 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A0848 #084A0A
analogous
#2B084A #4A0848 #4A0827
triadic
#4A0848 #484A08 #08484A
tetradic
#4A0848 #4A2B08 #084A0A #08274A
square
#4A0848 #4A2B08 #084A0A #08274A
split-complementary
#4A0848 #274A08 #084A2B
monochromatic
#1C031B #1C031B #4A0848 #810E7E #B814B3

Accessibility & contrast

On white

14.79
#4A0848 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#4A0848 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A0848
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A0848#FFFFFF#000000##FFFFFF
##4A08481.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224A
Deuteranopia (green-blind)
#1D2B46
Tritanopia (blue-blind)
#4D1329
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #4a0848;
/* rgb */ color: rgb(74, 8, 72);
/* oklch */ color: oklch(29.2% 0.122 329.6);
Tailwind
colors: {
  custom: {
    50: '#7f527b',
    500: '#4a0848',
    950: '#000000',
  },
}
SCSS
$custom: #4a0848;
$custom-light: #7f527b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a0848",
  "rgb": {
    "r": 74,
    "g": 8,
    "b": 72
  },
  "hsl": {
    "h": 301.818,
    "s": 80.488,
    "l": 16.078
  },
  "oklch": {
    "l": 0.29203,
    "c": 0.12172,
    "h": 329.6
  },
  "luminance": 0.02097
}

Semantic roles & 50–950 ramp

primary
#4A0848
secondary
#268829
accent
#F73731
background
#F8F4F7
surface
#EFE7EE
border
#CAC3C9
text
#0A0309
muted
#7C787B

Preview Lab

Preview with #4A0848

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

Preview Lab → · Contrast checker → · Palette generator →

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