#4C1785#4C1785

#4C1785 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.9% C 0.167 H 299.3°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#4C1785
RGBrgb(76, 23, 133)
HSLhsl(269, 71%, 31%)
HSVhsv(269, 83%, 52%)
CMYKcmyk(42.9%, 82.7%, 0%, 47.8%)
CIE-LABlab(23.14, 45.92, -50.81)
CIE-LCHlch(23.14, 68.48, 312.11°)
OKLaboklab(35.85% 0.0816 -0.1454)
OKLCHoklch(35.85% 0.167 299.3)
XYZxyz(7.5194, 3.8426, 22.5313)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1785 #508517
analogous
#171985 #4C1785 #831785
triadic
#4C1785 #854C17 #17854C
tetradic
#4C1785 #851719 #508517 #178583
square
#4C1785 #851719 #508517 #178583
split-complementary
#4C1785 #858317 #198517
monochromatic
#10051D #2E0E51 #4C1785 #6A20B9 #883ADD

Accessibility & contrast

On white

11.87
#4C1785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4C1785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1785
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1785#FFFFFF#000000##FFFFFF
##4C17851.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003788
Deuteranopia (green-blind)
#003683
Tritanopia (blue-blind)
#3E364F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4c1785;
/* rgb */ color: rgb(76, 23, 133);
/* oklch */ color: oklch(35.9% 0.167 299.3);
Tailwind
colors: {
  custom: {
    50: '#845ca9',
    500: '#4c1785',
    950: '#000000',
  },
}
SCSS
$custom: #4c1785;
$custom-light: #845ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1785",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 268.909,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35851,
    "c": 0.16672,
    "h": 299.3
  },
  "luminance": 0.03843
}

Semantic roles & 50–950 ramp

primary
#4C1785
secondary
#7EB93F
accent
#ED3B97
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4C1785

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

Preview Lab → · Contrast checker → · Palette generator →

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