#4A0F5A#4A0F5A

#4A0F5A is a dark, vivid purple. Relative luminance 0.025; OKLCH L 31.1% C 0.131 H 317.8°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#4A0F5A
RGBrgb(74, 15, 90)
HSLhsl(287, 71%, 21%)
HSVhsv(287, 83%, 35%)
CMYKcmyk(17.8%, 83.3%, 0%, 64.7%)
CIE-LABlab(18.08, 38.43, -31.19)
CIE-LCHlch(18.08, 49.50, 320.94°)
OKLaboklab(31.09% 0.0968 -0.0878)
OKLCHoklch(31.09% 0.131 317.8)
XYZxyz(4.8401, 2.5359, 9.9054)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A0F5A #1F5A0F
analogous
#240F5A #4A0F5A #5A0F44
triadic
#4A0F5A #5A4A0F #0F5A4A
tetradic
#4A0F5A #5A240F #1F5A0F #0F445A
square
#4A0F5A #5A240F #1F5A0F #0F445A
split-complementary
#4A0F5A #445A0F #0F5A24
monochromatic
#16041A #1F0626 #4A0F5A #75188E #A020C3

Accessibility & contrast

On white

13.93
#4A0F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A0F5A
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A0F5A#FFFFFF#000000##FFFFFF
##4A0F5A1.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295C
Deuteranopia (green-blind)
#122E58
Tritanopia (blue-blind)
#492034
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4a0f5a;
/* rgb */ color: rgb(74, 15, 90);
/* oklch */ color: oklch(31.1% 0.131 317.8);
Tailwind
colors: {
  custom: {
    50: '#805589',
    500: '#4a0f5a',
    950: '#000000',
  },
}
SCSS
$custom: #4a0f5a;
$custom-light: #805589;
$custom-dark: #000000;
JSON
{
  "hex": "#4a0f5a",
  "rgb": {
    "r": 74,
    "g": 15,
    "b": 90
  },
  "hsl": {
    "h": 287.2,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31093,
    "c": 0.13066,
    "h": 317.8
  },
  "luminance": 0.02536
}

Semantic roles & 50–950 ramp

primary
#4A0F5A
secondary
#469431
accent
#EE3A60
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A030B
muted
#7C787C

Preview Lab

Preview with #4A0F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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