#4C105E#4C105E

#4C105E is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.8% C 0.134 H 316.9°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#4C105E
RGBrgb(76, 16, 94)
HSLhsl(286, 71%, 22%)
HSVhsv(286, 83%, 37%)
CMYKcmyk(19.1%, 83%, 0%, 63.1%)
CIE-LABlab(18.87, 39.35, -32.58)
CIE-LCHlch(18.87, 51.09, 320.38°)
OKLaboklab(31.82% 0.0979 -0.0918)
OKLCHoklch(31.82% 0.134 316.9)
XYZxyz(5.1859, 2.7155, 10.8385)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C105E #225E10
analogous
#25105E #4C105E #5E1049
triadic
#4C105E #5E4C10 #105E4C
tetradic
#4C105E #5E2510 #225E10 #10495E
square
#4C105E #5E2510 #225E10 #10495E
split-complementary
#4C105E #495E10 #105E25
monochromatic
#15041A #22072A #4C105E #761992 #A122C7

Accessibility & contrast

On white

13.61
#4C105E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#4C105E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C105E
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C105E#FFFFFF#000000##FFFFFF
##4C105E1.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A60
Deuteranopia (green-blind)
#11305C
Tritanopia (blue-blind)
#4B2237
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4c105e;
/* rgb */ color: rgb(76, 16, 94);
/* oklch */ color: oklch(31.8% 0.134 316.9);
Tailwind
colors: {
  custom: {
    50: '#81568c',
    500: '#4c105e',
    950: '#000000',
  },
}
SCSS
$custom: #4c105e;
$custom-light: #81568c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c105e",
  "rgb": {
    "r": 76,
    "g": 16,
    "b": 94
  },
  "hsl": {
    "h": 286.154,
    "s": 70.909,
    "l": 21.569
  },
  "oklch": {
    "l": 0.31815,
    "c": 0.13422,
    "h": 316.9
  },
  "luminance": 0.02715
}

Semantic roles & 50–950 ramp

primary
#4C105E
secondary
#4A9733
accent
#EE3A64
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4C105E

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

Preview Lab → · Contrast checker → · Palette generator →

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