#4C3371#4C3371

#4C3371 is a dark, moderate violet. Relative luminance 0.051; OKLCH L 38.1% C 0.104 H 300.1°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#4C3371
RGBrgb(76, 51, 113)
HSLhsl(264, 38%, 32%)
HSVhsv(264, 55%, 44%)
CMYKcmyk(32.7%, 54.9%, 0%, 55.7%)
CIE-LABlab(27.01, 25.64, -31.89)
CIE-LCHlch(27.01, 40.91, 308.80°)
OKLaboklab(38.14% 0.0522 -0.0899)
OKLCHoklch(38.14% 0.104 300.1)
XYZxyz(7.1443, 5.0964, 16.2269)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C3371 #587133
analogous
#333971 #4C3371 #6B3371
triadic
#4C3371 #714C33 #33714C
tetradic
#4C3371 #713339 #587133 #33716B
square
#4C3371 #713339 #587133 #33716B
split-complementary
#4C3371 #716B33 #397133
monochromatic
#130D1D #302047 #4C3371 #68469B #8765B9

Accessibility & contrast

On white

10.40
#4C3371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4C3371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C3371
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C3371#FFFFFF#000000##FFFFFF
##4C33711.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4073
Deuteranopia (green-blind)
#243F70
Tritanopia (blue-blind)
#453F4D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c3371;
/* rgb */ color: rgb(76, 51, 113);
/* oklch */ color: oklch(38.1% 0.104 300.1);
Tailwind
colors: {
  custom: {
    50: '#806b9a',
    500: '#4c3371',
    950: '#000000',
  },
}
SCSS
$custom: #4c3371;
$custom-light: #806b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c3371",
  "rgb": {
    "r": 76,
    "g": 51,
    "b": 113
  },
  "hsl": {
    "h": 264.194,
    "s": 37.805,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3814,
    "c": 0.10399,
    "h": 300.1
  },
  "luminance": 0.05096
}

Semantic roles & 50–950 ramp

primary
#4C3371
secondary
#86A25E
accent
#CE5A9F
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0A070E
muted
#7C7A7E

Preview Lab

Preview with #4C3371

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

Preview Lab → · Contrast checker → · Palette generator →

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