#4C417B#4C417B

#4C417B is a dark, moderate violet. Relative luminance 0.067; OKLCH L 41.5% C 0.095 H 290.4°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#4C417B
RGBrgb(76, 65, 123)
HSLhsl(251, 31%, 37%)
HSVhsv(251, 47%, 48%)
CMYKcmyk(38.2%, 47.2%, 0%, 51.8%)
CIE-LABlab(31.22, 19.56, -31.49)
CIE-LCHlch(31.22, 37.07, 301.85°)
OKLaboklab(41.49% 0.033 -0.0888)
OKLCHoklch(41.49% 0.095 290.4)
XYZxyz(8.4450, 6.7469, 19.5924)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C417B #707B41
analogous
#41537B #4C417B #69417B
triadic
#4C417B #7B4C41 #417B4C
tetradic
#4C417B #7B4153 #707B41 #417B69
square
#4C417B #7B4153 #707B41 #417B69
split-complementary
#4C417B #7B6941 #537B41
monochromatic
#1B172B #332C53 #4C417B #6556A3 #887CBA

Accessibility & contrast

On white

8.94
#4C417B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4C417B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C417B
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C417B#FFFFFF#000000##FFFFFF
##4C417B1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4B7D
Deuteranopia (green-blind)
#2E487A
Tritanopia (blue-blind)
#404C58
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4c417b;
/* rgb */ color: rgb(76, 65, 123);
/* oklch */ color: oklch(41.5% 0.095 290.4);
Tailwind
colors: {
  custom: {
    50: '#8075a1',
    500: '#4c417b',
    950: '#000000',
  },
}
SCSS
$custom: #4c417b;
$custom-light: #8075a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c417b",
  "rgb": {
    "r": 76,
    "g": 65,
    "b": 123
  },
  "hsl": {
    "h": 251.379,
    "s": 30.851,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41492,
    "c": 0.0947,
    "h": 290.4
  },
  "luminance": 0.06747
}

Semantic roles & 50–950 ramp

primary
#4C417B
secondary
#9BA573
accent
#C761B4
background
#F8F7F9
surface
#EFEDF2
border
#CAC8CC
text
#0A080F
muted
#7C7B7E

Preview Lab

Preview with #4C417B

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

Preview Lab → · Contrast checker → · Palette generator →

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