#4C338C#4C338C

#4C338C is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.1% C 0.141 H 291.7°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#4C338C
RGBrgb(76, 51, 140)
HSLhsl(257, 47%, 37%)
HSVhsv(257, 64%, 55%)
CMYKcmyk(45.7%, 63.6%, 0%, 45.1%)
CIE-LABlab(28.90, 33.51, -45.80)
CIE-LCHlch(28.90, 56.75, 306.19°)
OKLaboklab(40.13% 0.0521 -0.1308)
OKLCHoklch(40.13% 0.141 291.7)
XYZxyz(8.8966, 5.7973, 25.4561)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C338C #738C33
analogous
#33468C #4C338C #79338C
triadic
#4C338C #8C4C33 #338C4C
tetradic
#4C338C #8C3346 #738C33 #338C79
square
#4C338C #8C3346 #738C33 #338C79
split-complementary
#4C338C #8C7933 #468C33
monochromatic
#1B1232 #34235F #4C338C #6443B9 #896FCB

Accessibility & contrast

On white

9.72
#4C338C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4C338C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C338C
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C338C#FFFFFF#000000##FFFFFF
##4C338C1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#39475A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4c338c;
/* rgb */ color: rgb(76, 51, 140);
/* oklch */ color: oklch(40.1% 0.141 291.7);
Tailwind
colors: {
  custom: {
    50: '#836cae',
    500: '#4c338c',
    950: '#000000',
  },
}
SCSS
$custom: #4c338c;
$custom-light: #836cae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c338c",
  "rgb": {
    "r": 76,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 256.854,
    "s": 46.597,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4013,
    "c": 0.14081,
    "h": 291.7
  },
  "luminance": 0.05798
}

Semantic roles & 50–950 ramp

primary
#4C338C
secondary
#9EB268
accent
#D652B1
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4C338C

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

Preview Lab → · Contrast checker → · Palette generator →

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