#4C337C#4C337C

#4C337C is a dark, moderate violet. Relative luminance 0.054; OKLCH L 38.9% C 0.119 H 296.2°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#4C337C
RGBrgb(76, 51, 124)
HSLhsl(261, 42%, 34%)
HSVhsv(261, 59%, 49%)
CMYKcmyk(38.7%, 58.9%, 0%, 51.4%)
CIE-LABlab(27.73, 28.78, -37.69)
CIE-LCHlch(27.73, 47.42, 307.37°)
OKLaboklab(38.91% 0.0527 -0.107)
OKLCHoklch(38.91% 0.119 296.2)
XYZxyz(7.8015, 5.3593, 19.6883)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C337C #637C33
analogous
#333F7C #4C337C #71337C
triadic
#4C337C #7C4C33 #337C4C
tetradic
#4C337C #7C333F #637C33 #337C71
square
#4C337C #7C333F #637C33 #337C71
split-complementary
#4C337C #7C7133 #3F7C33
monochromatic
#170F25 #312151 #4C337C #6745A7 #8768C1

Accessibility & contrast

On white

10.14
#4C337C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4C337C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C337C
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C337C#FFFFFF#000000##FFFFFF
##4C337C1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E427E
Deuteranopia (green-blind)
#18417A
Tritanopia (blue-blind)
#414252
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c337c;
/* rgb */ color: rgb(76, 51, 124);
/* oklch */ color: oklch(38.9% 0.119 296.2);
Tailwind
colors: {
  custom: {
    50: '#816ba2',
    500: '#4c337c',
    950: '#000000',
  },
}
SCSS
$custom: #4c337c;
$custom-light: #816ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c337c",
  "rgb": {
    "r": 76,
    "g": 51,
    "b": 124
  },
  "hsl": {
    "h": 260.548,
    "s": 41.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38912,
    "c": 0.11923,
    "h": 296.2
  },
  "luminance": 0.05359
}

Semantic roles & 50–950 ramp

primary
#4C337C
secondary
#91A962
accent
#D256A7
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4C337C

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

Preview Lab → · Contrast checker → · Palette generator →

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