#4B145C#4B145C

#4B145C is a dark, vivid purple. Relative luminance 0.028; OKLCH L 31.9% C 0.127 H 316.9°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#4B145C
RGBrgb(75, 20, 92)
HSLhsl(286, 64%, 22%)
HSVhsv(286, 78%, 36%)
CMYKcmyk(18.5%, 78.3%, 0%, 63.9%)
CIE-LABlab(19.09, 37.11, -30.89)
CIE-LCHlch(19.09, 48.28, 320.23°)
OKLaboklab(31.89% 0.0928 -0.0869)
OKLCHoklch(31.89% 0.127 316.9)
XYZxyz(5.0833, 2.7691, 10.3899)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B145C #255C14
analogous
#27145C #4B145C #5C1449
triadic
#4B145C #5C4B14 #145C4B
tetradic
#4B145C #5C2714 #255C14 #14495C
square
#4B145C #5C2714 #255C14 #14495C
split-complementary
#4B145C #495C14 #145C27
monochromatic
#140519 #22092A #4B145C #741F8E #9D2AC1

Accessibility & contrast

On white

13.52
#4B145C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#4B145C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B145C
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B145C#FFFFFF#000000##FFFFFF
##4B145C1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5E
Deuteranopia (green-blind)
#15305A
Tritanopia (blue-blind)
#4A2337
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4b145c;
/* rgb */ color: rgb(75, 20, 92);
/* oklch */ color: oklch(31.9% 0.127 316.9);
Tailwind
colors: {
  custom: {
    50: '#80588b',
    500: '#4b145c',
    950: '#000000',
  },
}
SCSS
$custom: #4b145c;
$custom-light: #80588b;
$custom-dark: #000000;
JSON
{
  "hex": "#4b145c",
  "rgb": {
    "r": 75,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 285.833,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.31894,
    "c": 0.12711,
    "h": 316.9
  },
  "luminance": 0.02769
}

Semantic roles & 50–950 ramp

primary
#4B145C
secondary
#4E9438
accent
#E74168
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #4B145C

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

Preview Lab → · Contrast checker → · Palette generator →

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