#4B0C4E#4B0C4E

#4B0C4E is a dark, vivid purple. Relative luminance 0.023; OKLCH L 30.1% C 0.123 H 326.1°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#4B0C4E
RGBrgb(75, 12, 78)
HSLhsl(297, 73%, 18%)
HSVhsv(297, 85%, 31%)
CMYKcmyk(3.8%, 84.6%, 0%, 69.4%)
CIE-LABlab(17.03, 37.26, -24.74)
CIE-LCHlch(17.03, 44.72, 326.42°)
OKLaboklab(30.11% 0.1023 -0.0688)
OKLCHoklch(30.11% 0.123 326.1)
XYZxyz(4.4082, 2.3092, 7.4198)
Luminance0.0231 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B0C4E #0F4E0C
analogous
#2A0C4E #4B0C4E #4E0C30
triadic
#4B0C4E #4E4B0C #0C4E4B
tetradic
#4B0C4E #4E2A0C #0F4E0C #0C304E
square
#4B0C4E #4E2A0C #0F4E0C #0C304E
split-complementary
#4B0C4E #304E0C #0C4E2A
monochromatic
#1A041B #1A041B #4B0C4E #7E1483 #B11CB8

Accessibility & contrast

On white

14.37
#4B0C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#4B0C4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B0C4E
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B0C4E#FFFFFF#000000##FFFFFF
##4B0C4E1.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002550
Deuteranopia (green-blind)
#1C2D4C
Tritanopia (blue-blind)
#4D182D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4b0c4e;
/* rgb */ color: rgb(75, 12, 78);
/* oklch */ color: oklch(30.1% 0.123 326.1);
Tailwind
colors: {
  custom: {
    50: '#805480',
    500: '#4b0c4e',
    950: '#000000',
  },
}
SCSS
$custom: #4b0c4e;
$custom-light: #805480;
$custom-dark: #000000;
JSON
{
  "hex": "#4b0c4e",
  "rgb": {
    "r": 75,
    "g": 12,
    "b": 78
  },
  "hsl": {
    "h": 297.273,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.3011,
    "c": 0.12328,
    "h": 326.1
  },
  "luminance": 0.02309
}

Semantic roles & 50–950 ramp

primary
#4B0C4E
secondary
#308A2C
accent
#F03840
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A030A
muted
#7C787C

Preview Lab

Preview with #4B0C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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