#4C239C#4C239C

#4C239C is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.180 H 291.1°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#4C239C
RGBrgb(76, 35, 156)
HSLhsl(260, 63%, 37%)
HSVhsv(260, 78%, 61%)
CMYKcmyk(51.3%, 77.6%, 0%, 38.8%)
CIE-LABlab(27.13, 46.81, -58.52)
CIE-LCHlch(27.13, 74.94, 308.65°)
OKLaboklab(39.29% 0.065 -0.1681)
OKLCHoklch(39.29% 0.18 291.1)
XYZxyz(9.5806, 5.1385, 31.9331)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C239C #739C23
analogous
#23369C #4C239C #89239C
triadic
#4C239C #9C4C23 #239C4C
tetradic
#4C239C #9C2336 #739C23 #239C89
square
#4C239C #9C2336 #739C23 #239C89
split-complementary
#4C239C #9C8923 #369C23
monochromatic
#1B0D38 #34186A #4C239C #642ECE #895EDB

Accessibility & contrast

On white

10.36
#4C239C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4C239C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C239C
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C239C#FFFFFF#000000##FFFFFF
##4C239C1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#003D9A
Tritanopia (blue-blind)
#30455E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c239c;
/* rgb */ color: rgb(76, 35, 156);
/* oklch */ color: oklch(39.3% 0.180 291.1);
Tailwind
colors: {
  custom: {
    50: '#8763ba',
    500: '#4c239c',
    950: '#000000',
  },
}
SCSS
$custom: #4c239c;
$custom-light: #8763ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4c239c",
  "rgb": {
    "r": 76,
    "g": 35,
    "b": 156
  },
  "hsl": {
    "h": 260.331,
    "s": 63.351,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39289,
    "c": 0.18024,
    "h": 291.1
  },
  "luminance": 0.05139
}

Semantic roles & 50–950 ramp

primary
#4C239C
secondary
#9EC05B
accent
#E641AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4C239C

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

Preview Lab → · Contrast checker → · Palette generator →

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