#4A0F52#4A0F52

#4A0F52 is a dark, vivid purple. Relative luminance 0.024; OKLCH L 30.5% C 0.123 H 322.6°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#4A0F52
RGBrgb(74, 15, 82)
HSLhsl(293, 69%, 19%)
HSVhsv(293, 82%, 32%)
CMYKcmyk(9.8%, 81.7%, 0%, 67.8%)
CIE-LABlab(17.49, 36.75, -26.74)
CIE-LCHlch(17.49, 45.45, 323.96°)
OKLaboklab(30.49% 0.0978 -0.0747)
OKLCHoklch(30.49% 0.123 322.6)
XYZxyz(4.5177, 2.4070, 8.2076)
Luminance0.0241 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A0F52 #17520F
analogous
#290F52 #4A0F52 #520F39
triadic
#4A0F52 #524A0F #0F524A
tetradic
#4A0F52 #52290F #17520F #0F3952
square
#4A0F52 #52290F #17520F #0F3952
split-complementary
#4A0F52 #39520F #0F5229
monochromatic
#17051A #1B061E #4A0F52 #791886 #A722B9

Accessibility & contrast

On white

14.18
#4A0F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A0F52
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A0F52#FFFFFF#000000##FFFFFF
##4A0F521.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002754
Deuteranopia (green-blind)
#1A2D50
Tritanopia (blue-blind)
#4B1C30
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4a0f52;
/* rgb */ color: rgb(74, 15, 82);
/* oklch */ color: oklch(30.5% 0.123 322.6);
Tailwind
colors: {
  custom: {
    50: '#7f5583',
    500: '#4a0f52',
    950: '#000000',
  },
}
SCSS
$custom: #4a0f52;
$custom-light: #7f5583;
$custom-dark: #000000;
JSON
{
  "hex": "#4a0f52",
  "rgb": {
    "r": 74,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 292.836,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.3049,
    "c": 0.12307,
    "h": 322.6
  },
  "luminance": 0.02407
}

Semantic roles & 50–950 ramp

primary
#4A0F52
secondary
#3C8C31
accent
#EC3C51
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A030A
muted
#7C787C

Preview Lab

Preview with #4A0F52

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

Preview Lab → · Contrast checker → · Palette generator →

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