#4C104E#4C104E

#4C104E is a dark, moderate purple. Relative luminance 0.025; OKLCH L 30.6% C 0.119 H 326.6°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#4C104E
RGBrgb(76, 16, 78)
HSLhsl(298, 66%, 18%)
HSVhsv(298, 79%, 31%)
CMYKcmyk(2.6%, 79.5%, 0%, 69.4%)
CIE-LABlab(17.73, 36.06, -23.62)
CIE-LCHlch(17.73, 43.11, 326.77°)
OKLaboklab(30.64% 0.0995 -0.0656)
OKLCHoklch(30.64% 0.119 326.6)
XYZxyz(4.5408, 2.4575, 7.4414)
Luminance0.0246 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C104E #124E10
analogous
#2D104E #4C104E #4E1031
triadic
#4C104E #4E4C10 #104E4C
tetradic
#4C104E #4E2D10 #124E10 #10314E
square
#4C104E #4E2D10 #124E10 #10314E
split-complementary
#4C104E #314E10 #104E2D
monochromatic
#190519 #1B061B #4C104E #7D1A81 #AF25B4

Accessibility & contrast

On white

14.08
#4C104E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#4C104E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C104E
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C104E#FFFFFF#000000##FFFFFF
##4C104E1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032750
Deuteranopia (green-blind)
#1F2E4C
Tritanopia (blue-blind)
#4E1A2E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4c104e;
/* rgb */ color: rgb(76, 16, 78);
/* oklch */ color: oklch(30.6% 0.119 326.6);
Tailwind
colors: {
  custom: {
    50: '#815680',
    500: '#4c104e',
    950: '#000000',
  },
}
SCSS
$custom: #4c104e;
$custom-light: #815680;
$custom-dark: #000000;
JSON
{
  "hex": "#4c104e",
  "rgb": {
    "r": 76,
    "g": 16,
    "b": 78
  },
  "hsl": {
    "h": 298.065,
    "s": 65.957,
    "l": 18.431
  },
  "oklch": {
    "l": 0.3064,
    "c": 0.11917,
    "h": 326.6
  },
  "luminance": 0.02457
}

Semantic roles & 50–950 ramp

primary
#4C104E
secondary
#358832
accent
#E93F44
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4C104E

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

Preview Lab → · Contrast checker → · Palette generator →

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