#4C38AA#4C38AA

#4C38AA is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.4% C 0.173 H 284.6°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#4C38AA
RGBrgb(76, 56, 170)
HSLhsl(251, 50%, 44%)
HSVhsv(251, 67%, 67%)
CMYKcmyk(55.3%, 67.1%, 0%, 33.3%)
CIE-LABlab(32.41, 39.71, -58.35)
CIE-LCHlch(32.41, 70.58, 304.24°)
OKLaboklab(43.43% 0.0437 -0.1677)
OKLCHoklch(43.43% 0.173 284.6)
XYZxyz(11.6482, 7.2665, 38.8112)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C38AA #96AA38
analogous
#385DAA #4C38AA #8538AA
triadic
#4C38AA #AA4C38 #38AA4C
tetradic
#4C38AA #AA385D #96AA38 #38AA85
square
#4C38AA #AA385D #96AA38 #38AA85
split-complementary
#4C38AA #AA8538 #5DAA38
monochromatic
#231A4E #37297C #4C38AA #6B57C8 #9485D7

Accessibility & contrast

On white

8.56
#4C38AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#4C38AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C38AA
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C38AA#FFFFFF#000000##FFFFFF
##4C38AA1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AE
Deuteranopia (green-blind)
#0049A8
Tritanopia (blue-blind)
#22556C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4c38aa;
/* rgb */ color: rgb(76, 56, 170);
/* oklch */ color: oklch(43.4% 0.173 284.6);
Tailwind
colors: {
  custom: {
    50: '#8770c4',
    500: '#4c38aa',
    950: '#000000',
  },
}
SCSS
$custom: #4c38aa;
$custom-light: #8770c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c38aa",
  "rgb": {
    "r": 76,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 250.526,
    "s": 50.442,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43428,
    "c": 0.17327,
    "h": 284.6
  },
  "luminance": 0.07267
}

Semantic roles & 50–950 ramp

primary
#4C38AA
secondary
#B5C17D
accent
#DA4EC1
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4C38AA

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

Preview Lab → · Contrast checker → · Palette generator →

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