#4B145F#4B145F

#4B145F is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.1% C 0.130 H 315.2°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#4B145F
RGBrgb(75, 20, 95)
HSLhsl(284, 65%, 23%)
HSVhsv(284, 79%, 37%)
CMYKcmyk(21.1%, 78.9%, 0%, 62.7%)
CIE-LABlab(19.32, 37.78, -32.52)
CIE-LCHlch(19.32, 49.85, 319.28°)
OKLaboklab(32.13% 0.0924 -0.0917)
OKLCHoklch(32.13% 0.13 315.2)
XYZxyz(5.2170, 2.8226, 11.0943)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B145F #285F14
analogous
#26145F #4B145F #5F144D
triadic
#4B145F #5F4B14 #145F4B
tetradic
#4B145F #5F2614 #285F14 #144D5F
square
#4B145F #5F2614 #285F14 #144D5F
split-complementary
#4B145F #4D5F14 #145F26
monochromatic
#140519 #23092C #4B145F #731F92 #9B29C4

Accessibility & contrast

On white

13.42
#4B145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#4B145F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B145F
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B145F#FFFFFF#000000##FFFFFF
##4B145F1.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C61
Deuteranopia (green-blind)
#11305D
Tritanopia (blue-blind)
#492438
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4b145f;
/* rgb */ color: rgb(75, 20, 95);
/* oklch */ color: oklch(32.1% 0.130 315.2);
Tailwind
colors: {
  custom: {
    50: '#80588d',
    500: '#4b145f',
    950: '#000000',
  },
}
SCSS
$custom: #4b145f;
$custom-light: #80588d;
$custom-dark: #000000;
JSON
{
  "hex": "#4b145f",
  "rgb": {
    "r": 75,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 284,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32125,
    "c": 0.13016,
    "h": 315.2
  },
  "luminance": 0.02822
}

Semantic roles & 50–950 ramp

primary
#4B145F
secondary
#519738
accent
#E8406D
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4B145F

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

Preview Lab → · Contrast checker → · Palette generator →

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