#4C398E#4C398E

#4C398E is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.3% C 0.135 H 289.4°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#4C398E
RGBrgb(76, 57, 142)
HSLhsl(253, 43%, 39%)
HSVhsv(253, 60%, 56%)
CMYKcmyk(46.5%, 59.9%, 0%, 44.3%)
CIE-LABlab(30.44, 30.44, -44.54)
CIE-LCHlch(30.44, 53.95, 304.35°)
OKLaboklab(41.31% 0.0449 -0.1271)
OKLCHoklch(41.31% 0.135 289.4)
XYZxyz(9.3247, 6.4154, 26.3329)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C398E #7B8E39
analogous
#39518E #4C398E #77398E
triadic
#4C398E #8E4C39 #398E4C
tetradic
#4C398E #8E3951 #7B8E39 #398E77
square
#4C398E #8E3951 #7B8E39 #398E77
split-complementary
#4C398E #8E7739 #518E39
monochromatic
#1D1637 #352762 #4C398E #654DB7 #8A78C9

Accessibility & contrast

On white

9.20
#4C398E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4C398E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C398E
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C398E#FFFFFF#000000##FFFFFF
##4C398E1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#00468C
Tritanopia (blue-blind)
#384C5E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4c398e;
/* rgb */ color: rgb(76, 57, 142);
/* oklch */ color: oklch(41.3% 0.135 289.4);
Tailwind
colors: {
  custom: {
    50: '#8370b0',
    500: '#4c398e',
    950: '#000000',
  },
}
SCSS
$custom: #4c398e;
$custom-light: #8370b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c398e",
  "rgb": {
    "r": 76,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 253.412,
    "s": 42.714,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41305,
    "c": 0.13479,
    "h": 289.4
  },
  "luminance": 0.06416
}

Semantic roles & 50–950 ramp

primary
#4C398E
secondary
#A4B271
accent
#D255B7
background
#F8F6FA
surface
#EFECF5
border
#CAC7CF
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4C398E

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

Preview Lab → · Contrast checker → · Palette generator →

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