#4B145E#4B145E

#4B145E is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.0% C 0.129 H 315.8°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#4B145E
RGBrgb(75, 20, 94)
HSLhsl(285, 65%, 22%)
HSVhsv(285, 79%, 37%)
CMYKcmyk(20.2%, 78.7%, 0%, 63.1%)
CIE-LABlab(19.24, 37.56, -31.98)
CIE-LCHlch(19.24, 49.33, 319.59°)
OKLaboklab(32.05% 0.0925 -0.0901)
OKLCHoklch(32.05% 0.129 315.8)
XYZxyz(5.1719, 2.8045, 10.8564)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B145E #275E14
analogous
#26145E #4B145E #5E144C
triadic
#4B145E #5E4B14 #145E4B
tetradic
#4B145E #5E2614 #275E14 #144C5E
square
#4B145E #5E2614 #275E14 #144C5E
split-complementary
#4B145E #4C5E14 #145E26
monochromatic
#140519 #23092C #4B145E #731F90 #9C29C3

Accessibility & contrast

On white

13.45
#4B145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B145E
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B145E#FFFFFF#000000##FFFFFF
##4B145E1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B60
Deuteranopia (green-blind)
#13305C
Tritanopia (blue-blind)
#4A2438
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4b145e;
/* rgb */ color: rgb(75, 20, 94);
/* oklch */ color: oklch(32.0% 0.129 315.8);
Tailwind
colors: {
  custom: {
    50: '#80588c',
    500: '#4b145e',
    950: '#000000',
  },
}
SCSS
$custom: #4b145e;
$custom-light: #80588c;
$custom-dark: #000000;
JSON
{
  "hex": "#4b145e",
  "rgb": {
    "r": 75,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 284.595,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32048,
    "c": 0.12914,
    "h": 315.8
  },
  "luminance": 0.02804
}

Semantic roles & 50–950 ramp

primary
#4B145E
secondary
#509638
accent
#E8406B
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4B145E

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

Preview Lab → · Contrast checker → · Palette generator →

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