#4C239A#4C239A

#4C239A is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.178 H 291.6°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#4C239A
RGBrgb(76, 35, 154)
HSLhsl(261, 63%, 37%)
HSVhsv(261, 77%, 60%)
CMYKcmyk(50.6%, 77.3%, 0%, 39.6%)
CIE-LABlab(26.94, 46.25, -57.61)
CIE-LCHlch(26.94, 73.88, 308.76°)
OKLaboklab(39.1% 0.0656 -0.1654)
OKLCHoklch(39.1% 0.178 291.6)
XYZxyz(9.4126, 5.0713, 31.0485)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C239A #719A23
analogous
#23369A #4C239A #88239A
triadic
#4C239A #9A4C23 #239A4C
tetradic
#4C239A #9A2336 #719A23 #239A88
square
#4C239A #9A2336 #719A23 #239A88
split-complementary
#4C239A #9A8823 #369A23
monochromatic
#1B0C36 #331868 #4C239A #652ECC #885DDA

Accessibility & contrast

On white

10.42
#4C239A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4C239A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C239A
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C239A#FFFFFF#000000##FFFFFF
##4C239A1.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419D
Deuteranopia (green-blind)
#003D98
Tritanopia (blue-blind)
#32445D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c239a;
/* rgb */ color: rgb(76, 35, 154);
/* oklch */ color: oklch(39.1% 0.178 291.6);
Tailwind
colors: {
  custom: {
    50: '#8663b9',
    500: '#4c239a',
    950: '#000000',
  },
}
SCSS
$custom: #4c239a;
$custom-light: #8663b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c239a",
  "rgb": {
    "r": 76,
    "g": 35,
    "b": 154
  },
  "hsl": {
    "h": 260.672,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.391,
    "c": 0.17796,
    "h": 291.6
  },
  "luminance": 0.05072
}

Semantic roles & 50–950 ramp

primary
#4C239A
secondary
#9CBF5A
accent
#E642AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4C239A

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

Preview Lab → · Contrast checker → · Palette generator →

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