#4C38AC#4C38AC

#4C38AC is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.6% C 0.176 H 284.3°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#4C38AC
RGBrgb(76, 56, 172)
HSLhsl(250, 51%, 45%)
HSVhsv(250, 67%, 67%)
CMYKcmyk(55.8%, 67.4%, 0%, 32.5%)
CIE-LABlab(32.57, 40.33, -59.27)
CIE-LCHlch(32.57, 71.69, 304.23°)
OKLaboklab(43.6% 0.0434 -0.1704)
OKLCHoklch(43.6% 0.176 284.3)
XYZxyz(11.8388, 7.3427, 39.8152)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C38AC #98AC38
analogous
#385EAC #4C38AC #8638AC
triadic
#4C38AC #AC4C38 #38AC4C
tetradic
#4C38AC #AC385E #98AC38 #38AC86
square
#4C38AC #AC385E #98AC38 #38AC86
split-complementary
#4C38AC #AC8638 #5EAC38
monochromatic
#231A50 #38297E #4C38AC #6C58C9 #9587D8

Accessibility & contrast

On white

8.51
#4C38AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#4C38AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C38AC
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C38AC#FFFFFF#000000##FFFFFF
##4C38AC1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B0
Deuteranopia (green-blind)
#0049AA
Tritanopia (blue-blind)
#1F566D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4c38ac;
/* rgb */ color: rgb(76, 56, 172);
/* oklch */ color: oklch(43.6% 0.176 284.3);
Tailwind
colors: {
  custom: {
    50: '#8870c6',
    500: '#4c38ac',
    950: '#000000',
  },
}
SCSS
$custom: #4c38ac;
$custom-light: #8870c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c38ac",
  "rgb": {
    "r": 76,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 250.345,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43602,
    "c": 0.17583,
    "h": 284.3
  },
  "luminance": 0.07343
}

Semantic roles & 50–950 ramp

primary
#4C38AC
secondary
#B6C27E
accent
#DA4DC2
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4C38AC

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

Preview Lab → · Contrast checker → · Palette generator →

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