#4A0F5B#4A0F5B

#4A0F5B is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.2% C 0.132 H 317.2°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#4A0F5B
RGBrgb(74, 15, 91)
HSLhsl(287, 72%, 21%)
HSVhsv(287, 84%, 36%)
CMYKcmyk(18.7%, 83.5%, 0%, 64.3%)
CIE-LABlab(18.16, 38.65, -31.74)
CIE-LCHlch(18.16, 50.01, 320.61°)
OKLaboklab(31.17% 0.0966 -0.0894)
OKLCHoklch(31.17% 0.132 317.2)
XYZxyz(4.8829, 2.5530, 10.1311)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A0F5B #205B0F
analogous
#240F5B #4A0F5B #5B0F46
triadic
#4A0F5B #5B4A0F #0F5B4A
tetradic
#4A0F5B #5B240F #205B0F #0F465B
square
#4A0F5B #5B240F #205B0F #0F465B
split-complementary
#4A0F5B #465B0F #0F5B24
monochromatic
#15041A #1F0626 #4A0F5B #751890 #9F20C4

Accessibility & contrast

On white

13.90
#4A0F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A0F5B
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A0F5B#FFFFFF#000000##FFFFFF
##4A0F5B1.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295D
Deuteranopia (green-blind)
#112E59
Tritanopia (blue-blind)
#492035
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4a0f5b;
/* rgb */ color: rgb(74, 15, 91);
/* oklch */ color: oklch(31.2% 0.132 317.2);
Tailwind
colors: {
  custom: {
    50: '#80558a',
    500: '#4a0f5b',
    950: '#000000',
  },
}
SCSS
$custom: #4a0f5b;
$custom-light: #80558a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a0f5b",
  "rgb": {
    "r": 74,
    "g": 15,
    "b": 91
  },
  "hsl": {
    "h": 286.579,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31172,
    "c": 0.13161,
    "h": 317.2
  },
  "luminance": 0.02553
}

Semantic roles & 50–950 ramp

primary
#4A0F5B
secondary
#479531
accent
#EE3962
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #4A0F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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