#4C1968#4C1968

#4C1968 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.134 H 310.7°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#4C1968
RGBrgb(76, 25, 104)
HSLhsl(279, 61%, 25%)
HSVhsv(279, 76%, 41%)
CMYKcmyk(26.9%, 76%, 0%, 59.2%)
CIE-LABlab(20.95, 37.89, -35.81)
CIE-LCHlch(20.95, 52.13, 316.62°)
OKLaboklab(33.53% 0.087 -0.1013)
OKLCHoklch(33.53% 0.134 310.7)
XYZxyz(5.8263, 3.2314, 13.4108)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1968 #356819
analogous
#241968 #4C1968 #68195C
triadic
#4C1968 #684C19 #19684C
tetradic
#4C1968 #682419 #356819 #195C68
square
#4C1968 #682419 #356819 #195C68
split-complementary
#4C1968 #5C6819 #196824
monochromatic
#120619 #280D37 #4C1968 #702599 #9431CB

Accessibility & contrast

On white

12.76
#4C1968 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4C1968 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1968
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1968#FFFFFF#000000##FFFFFF
##4C19681.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306A
Deuteranopia (green-blind)
#0B3366
Tritanopia (blue-blind)
#482B3F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4c1968;
/* rgb */ color: rgb(76, 25, 104);
/* oklch */ color: oklch(33.5% 0.134 310.7);
Tailwind
colors: {
  custom: {
    50: '#815b94',
    500: '#4c1968',
    950: '#000000',
  },
}
SCSS
$custom: #4c1968;
$custom-light: #815b94;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1968",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 104
  },
  "hsl": {
    "h": 278.734,
    "s": 61.24,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33533,
    "c": 0.13357,
    "h": 310.7
  },
  "luminance": 0.03231
}

Semantic roles & 50–950 ramp

primary
#4C1968
secondary
#619E3F
accent
#E4437C
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C1968

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

Preview Lab → · Contrast checker → · Palette generator →

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