#4A145B#4A145B

#4A145B is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.7% C 0.126 H 316.7°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#4A145B
RGBrgb(74, 20, 91)
HSLhsl(286, 64%, 22%)
HSVhsv(286, 78%, 36%)
CMYKcmyk(18.7%, 78%, 0%, 64.3%)
CIE-LABlab(18.85, 36.66, -30.62)
CIE-LCHlch(18.85, 47.76, 320.13°)
OKLaboklab(31.66% 0.0915 -0.0861)
OKLCHoklch(31.66% 0.126 316.7)
XYZxyz(4.9622, 2.7117, 10.1575)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A145B #255B14
analogous
#27145B #4A145B #5B1449
triadic
#4A145B #5B4A14 #145B4A
tetradic
#4A145B #5B2714 #255B14 #14495B
square
#4A145B #5B2714 #255B14 #14495B
split-complementary
#4A145B #495B14 #145B27
monochromatic
#140619 #210929 #4A145B #731F8D #9C2ABF

Accessibility & contrast

On white

13.62
#4A145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#4A145B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A145B
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A145B#FFFFFF#000000##FFFFFF
##4A145B1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5D
Deuteranopia (green-blind)
#152F59
Tritanopia (blue-blind)
#492336
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4a145b;
/* rgb */ color: rgb(74, 20, 91);
/* oklch */ color: oklch(31.7% 0.126 316.7);
Tailwind
colors: {
  custom: {
    50: '#7f588a',
    500: '#4a145b',
    950: '#000000',
  },
}
SCSS
$custom: #4a145b;
$custom-light: #7f588a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a145b",
  "rgb": {
    "r": 74,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 285.634,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.31663,
    "c": 0.12567,
    "h": 316.7
  },
  "luminance": 0.02711
}

Semantic roles & 50–950 ramp

primary
#4A145B
secondary
#4E9338
accent
#E74169
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #4A145B

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

Preview Lab → · Contrast checker → · Palette generator →

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