#4A0B40#4A0B40

#4A0B40 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 28.9% C 0.112 H 335.6°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#4A0B40
RGBrgb(74, 11, 64)
HSLhsl(310, 74%, 17%)
HSVhsv(310, 85%, 29%)
CMYKcmyk(0%, 85.1%, 13.5%, 71%)
CIE-LABlab(15.83, 34.81, -16.95)
CIE-LCHlch(15.83, 38.72, 334.03°)
OKLaboklab(28.93% 0.1019 -0.0463)
OKLCHoklch(28.93% 0.112 335.6)
XYZxyz(3.8692, 2.0657, 5.0444)
Luminance0.0207 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A0B40 #0B4A15
analogous
#350B4A #4A0B40 #4A0B21
triadic
#4A0B40 #404A0B #0B404A
tetradic
#4A0B40 #4A350B #0B4A15 #0B214A
square
#4A0B40 #4A350B #0B4A15 #0B214A
split-complementary
#4A0B40 #214A0B #0B4A35
monochromatic
#1B0417 #1B0417 #4A0B40 #7F136E #B51B9C

Accessibility & contrast

On white

14.86
#4A0B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#4A0B40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A0B40
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A0B40#FFFFFF#000000##FFFFFF
##4A0B401.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2141
Deuteranopia (green-blind)
#222B3F
Tritanopia (blue-blind)
#4E1025
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #4a0b40;
/* rgb */ color: rgb(74, 11, 64);
/* oklch */ color: oklch(28.9% 0.112 335.6);
Tailwind
colors: {
  custom: {
    50: '#7f5275',
    500: '#4a0b40',
    950: '#000000',
  },
}
SCSS
$custom: #4a0b40;
$custom-light: #7f5275;
$custom-dark: #000000;
JSON
{
  "hex": "#4a0b40",
  "rgb": {
    "r": 74,
    "g": 11,
    "b": 64
  },
  "hsl": {
    "h": 309.524,
    "s": 74.118,
    "l": 16.667
  },
  "oklch": {
    "l": 0.28925,
    "c": 0.11195,
    "h": 335.6
  },
  "luminance": 0.02065
}

Semantic roles & 50–950 ramp

primary
#4A0B40
secondary
#2B8639
accent
#F15537
background
#F8F4F7
surface
#EFE7ED
border
#CAC3C8
text
#0A0308
muted
#7C787B

Preview Lab

Preview with #4A0B40

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

Preview Lab → · Contrast checker → · Palette generator →

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