#4C1966#4C1966

#4C1966 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.131 H 311.6°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#4C1966
RGBrgb(76, 25, 102)
HSLhsl(280, 61%, 25%)
HSVhsv(280, 75%, 40%)
CMYKcmyk(25.5%, 75.5%, 0%, 60%)
CIE-LABlab(20.79, 37.41, -34.75)
CIE-LCHlch(20.79, 51.06, 317.12°)
OKLaboklab(33.38% 0.0873 -0.0982)
OKLCHoklch(33.38% 0.131 311.6)
XYZxyz(5.7259, 3.1912, 12.8821)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1966 #336619
analogous
#251966 #4C1966 #66195A
triadic
#4C1966 #664C19 #19664C
tetradic
#4C1966 #662519 #336619 #195A66
square
#4C1966 #662519 #336619 #195A66
split-complementary
#4C1966 #5A6619 #196625
monochromatic
#120619 #270D35 #4C1966 #712597 #9531C8

Accessibility & contrast

On white

12.82
#4C1966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4C1966 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1966
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1966#FFFFFF#000000##FFFFFF
##4C19661.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003068
Deuteranopia (green-blind)
#0F3364
Tritanopia (blue-blind)
#492A3E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4c1966;
/* rgb */ color: rgb(76, 25, 102);
/* oklch */ color: oklch(33.4% 0.131 311.6);
Tailwind
colors: {
  custom: {
    50: '#815b92',
    500: '#4c1966',
    950: '#000000',
  },
}
SCSS
$custom: #4c1966;
$custom-light: #815b92;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1966",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 279.74,
    "s": 60.63,
    "l": 24.902
  },
  "oklch": {
    "l": 0.33375,
    "c": 0.13141,
    "h": 311.6
  },
  "luminance": 0.03191
}

Semantic roles & 50–950 ramp

primary
#4C1966
secondary
#5E9C3F
accent
#E4447A
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C1966

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

Preview Lab → · Contrast checker → · Palette generator →

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