#4C1689#4C1689

#4C1689 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.172 H 298.1°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#4C1689
RGBrgb(76, 22, 137)
HSLhsl(268, 72%, 31%)
HSVhsv(268, 84%, 54%)
CMYKcmyk(44.5%, 83.9%, 0%, 46.3%)
CIE-LABlab(23.39, 47.31, -52.91)
CIE-LCHlch(23.39, 70.98, 311.81°)
OKLaboklab(36.14% 0.081 -0.1515)
OKLCHoklch(36.14% 0.172 298.1)
XYZxyz(7.7816, 3.9163, 24.0080)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1689 #538916
analogous
#161989 #4C1689 #851689
triadic
#4C1689 #894C16 #16894C
tetradic
#4C1689 #891619 #538916 #168985
square
#4C1689 #891619 #538916 #168985
split-complementary
#4C1689 #898516 #198916
monochromatic
#110520 #2F0E54 #4C1689 #691EBE #883ADF

Accessibility & contrast

On white

11.78
#4C1689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4C1689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1689
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1689#FFFFFF#000000##FFFFFF
##4C16891.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388C
Deuteranopia (green-blind)
#003687
Tritanopia (blue-blind)
#3C3751
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c1689;
/* rgb */ color: rgb(76, 22, 137);
/* oklch */ color: oklch(36.1% 0.172 298.1);
Tailwind
colors: {
  custom: {
    50: '#855bac',
    500: '#4c1689',
    950: '#000000',
  },
}
SCSS
$custom: #4c1689;
$custom-light: #855bac;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1689",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 137
  },
  "hsl": {
    "h": 268.174,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36139,
    "c": 0.17182,
    "h": 298.1
  },
  "luminance": 0.03916
}

Semantic roles & 50–950 ramp

primary
#4C1689
secondary
#81BD3E
accent
#EF3999
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4C1689

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

Preview Lab → · Contrast checker → · Palette generator →

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