#4A0F5C#4A0F5C

#4A0F5C is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.3% C 0.133 H 316.7°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#4A0F5C
RGBrgb(74, 15, 92)
HSLhsl(286, 72%, 21%)
HSVhsv(286, 84%, 36%)
CMYKcmyk(19.6%, 83.7%, 0%, 63.9%)
CIE-LABlab(18.23, 38.86, -32.28)
CIE-LCHlch(18.23, 50.52, 320.29°)
OKLaboklab(31.25% 0.0964 -0.091)
OKLCHoklch(31.25% 0.133 316.7)
XYZxyz(4.9263, 2.5704, 10.3598)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A0F5C #215C0F
analogous
#230F5C #4A0F5C #5C0F47
triadic
#4A0F5C #5C4A0F #0F5C4A
tetradic
#4A0F5C #5C230F #215C0F #0F475C
square
#4A0F5C #5C230F #215C0F #0F475C
split-complementary
#4A0F5C #475C0F #0F5C23
monochromatic
#15041A #200627 #4A0F5C #741891 #9F20C5

Accessibility & contrast

On white

13.87
#4A0F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#4A0F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A0F5C
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A0F5C#FFFFFF#000000##FFFFFF
##4A0F5C1.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295E
Deuteranopia (green-blind)
#0F2E5A
Tritanopia (blue-blind)
#492135
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4a0f5c;
/* rgb */ color: rgb(74, 15, 92);
/* oklch */ color: oklch(31.3% 0.133 316.7);
Tailwind
colors: {
  custom: {
    50: '#80568b',
    500: '#4a0f5c',
    950: '#000000',
  },
}
SCSS
$custom: #4a0f5c;
$custom-light: #80568b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a0f5c",
  "rgb": {
    "r": 74,
    "g": 15,
    "b": 92
  },
  "hsl": {
    "h": 285.974,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31251,
    "c": 0.13258,
    "h": 316.7
  },
  "luminance": 0.0257
}

Semantic roles & 50–950 ramp

primary
#4A0F5C
secondary
#499531
accent
#EF3964
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #4A0F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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