#4C1983#4C1983

#4C1983 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.163 H 299.7°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#4C1983
RGBrgb(76, 25, 131)
HSLhsl(269, 68%, 31%)
HSVhsv(269, 81%, 51%)
CMYKcmyk(42%, 80.9%, 0%, 48.6%)
CIE-LABlab(23.24, 44.60, -49.39)
CIE-LCHlch(23.24, 66.55, 312.08°)
OKLaboklab(35.86% 0.0806 -0.1412)
OKLCHoklch(35.86% 0.163 299.7)
XYZxyz(7.4238, 3.8704, 21.8243)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1983 #508319
analogous
#191B83 #4C1983 #811983
triadic
#4C1983 #834C19 #19834C
tetradic
#4C1983 #83191B #508319 #198381
square
#4C1983 #83191B #508319 #198381
split-complementary
#4C1983 #838119 #1B8319
monochromatic
#10051C #2E0F50 #4C1983 #6A23B6 #883DDA

Accessibility & contrast

On white

11.84
#4C1983 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1983
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1983#FFFFFF#000000##FFFFFF
##4C19831.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003786
Deuteranopia (green-blind)
#003681
Tritanopia (blue-blind)
#3F364E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4c1983;
/* rgb */ color: rgb(76, 25, 131);
/* oklch */ color: oklch(35.9% 0.163 299.7);
Tailwind
colors: {
  custom: {
    50: '#845ca8',
    500: '#4c1983',
    950: '#000000',
  },
}
SCSS
$custom: #4c1983;
$custom-light: #845ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1983",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 131
  },
  "hsl": {
    "h": 268.868,
    "s": 67.949,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35859,
    "c": 0.16264,
    "h": 299.7
  },
  "luminance": 0.0387
}

Semantic roles & 50–950 ramp

primary
#4C1983
secondary
#7EB741
accent
#EB3D97
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #4C1983

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

Preview Lab → · Contrast checker → · Palette generator →

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