#4C1254#4C1254

#4C1254 is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.3% C 0.122 H 322.6°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#4C1254
RGBrgb(76, 18, 84)
HSLhsl(293, 65%, 20%)
HSVhsv(293, 79%, 33%)
CMYKcmyk(9.5%, 78.6%, 0%, 67.1%)
CIE-LABlab(18.41, 36.47, -26.61)
CIE-LCHlch(18.41, 45.15, 323.88°)
OKLaboklab(31.26% 0.0971 -0.0743)
OKLCHoklch(31.26% 0.122 322.6)
XYZxyz(4.7969, 2.6095, 8.6368)
Luminance0.0261 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1254 #1A5412
analogous
#2B1254 #4C1254 #54123B
triadic
#4C1254 #544C12 #12544C
tetradic
#4C1254 #542B12 #1A5412 #123B54
square
#4C1254 #542B12 #1A5412 #123B54
split-complementary
#4C1254 #3B5412 #12542B
monochromatic
#170519 #1E0722 #4C1254 #7A1D86 #A728B9

Accessibility & contrast

On white

13.80
#4C1254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#4C1254 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1254
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1254#FFFFFF#000000##FFFFFF
##4C12541.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002956
Deuteranopia (green-blind)
#1C2F52
Tritanopia (blue-blind)
#4D1E32
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4c1254;
/* rgb */ color: rgb(76, 18, 84);
/* oklch */ color: oklch(31.3% 0.122 322.6);
Tailwind
colors: {
  custom: {
    50: '#815784',
    500: '#4c1254',
    950: '#000000',
  },
}
SCSS
$custom: #4c1254;
$custom-light: #815784;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1254",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 292.727,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.31257,
    "c": 0.12226,
    "h": 322.6
  },
  "luminance": 0.02609
}

Semantic roles & 50–950 ramp

primary
#4C1254
secondary
#408D35
accent
#E84054
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4C1254

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

Preview Lab → · Contrast checker → · Palette generator →

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