#4A0F51#4A0F51

#4A0F51 is a dark, vivid purple. Relative luminance 0.024; OKLCH L 30.4% C 0.122 H 323.2°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#4A0F51
RGBrgb(74, 15, 81)
HSLhsl(294, 69%, 19%)
HSVhsv(294, 81%, 32%)
CMYKcmyk(8.6%, 81.5%, 0%, 68.2%)
CIE-LABlab(17.42, 36.55, -26.17)
CIE-LCHlch(17.42, 44.96, 324.39°)
OKLaboklab(30.42% 0.0979 -0.0731)
OKLCHoklch(30.42% 0.122 323.2)
XYZxyz(4.4799, 2.3918, 8.0087)
Luminance0.0239 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A0F51 #16510F
analogous
#290F51 #4A0F51 #510F37
triadic
#4A0F51 #514A0F #0F514A
tetradic
#4A0F51 #51290F #16510F #0F3751
square
#4A0F51 #51290F #16510F #0F3751
split-complementary
#4A0F51 #37510F #0F5129
monochromatic
#18051A #1B051D #4A0F51 #791985 #A822B8

Accessibility & contrast

On white

14.20
#4A0F51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#4A0F51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A0F51
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A0F51#FFFFFF#000000##FFFFFF
##4A0F511.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002653
Deuteranopia (green-blind)
#1A2D4F
Tritanopia (blue-blind)
#4B1B2F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4a0f51;
/* rgb */ color: rgb(74, 15, 81);
/* oklch */ color: oklch(30.4% 0.122 323.2);
Tailwind
colors: {
  custom: {
    50: '#7f5582',
    500: '#4a0f51',
    950: '#000000',
  },
}
SCSS
$custom: #4a0f51;
$custom-light: #7f5582;
$custom-dark: #000000;
JSON
{
  "hex": "#4a0f51",
  "rgb": {
    "r": 74,
    "g": 15,
    "b": 81
  },
  "hsl": {
    "h": 293.636,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.30417,
    "c": 0.12213,
    "h": 323.2
  },
  "luminance": 0.02392
}

Semantic roles & 50–950 ramp

primary
#4A0F51
secondary
#3A8B31
accent
#EC3C4F
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A030A
muted
#7C787C

Preview Lab

Preview with #4A0F51

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

Preview Lab → · Contrast checker → · Palette generator →

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