#4C239B#4C239B

#4C239B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.179 H 291.4°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#4C239B
RGBrgb(76, 35, 155)
HSLhsl(261, 63%, 37%)
HSVhsv(261, 77%, 61%)
CMYKcmyk(51%, 77.4%, 0%, 39.2%)
CIE-LABlab(27.03, 46.53, -58.07)
CIE-LCHlch(27.03, 74.41, 308.71°)
OKLaboklab(39.19% 0.0653 -0.1668)
OKLCHoklch(39.19% 0.179 291.4)
XYZxyz(9.4962, 5.1047, 31.4889)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C239B #729B23
analogous
#23369B #4C239B #88239B
triadic
#4C239B #9B4C23 #239B4C
tetradic
#4C239B #9B2336 #729B23 #239B88
square
#4C239B #9B2336 #729B23 #239B88
split-complementary
#4C239B #9B8823 #369B23
monochromatic
#1B0C37 #341869 #4C239B #642ECD #885EDB

Accessibility & contrast

On white

10.39
#4C239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4C239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C239B
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C239B#FFFFFF#000000##FFFFFF
##4C239B1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003D99
Tritanopia (blue-blind)
#31445E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c239b;
/* rgb */ color: rgb(76, 35, 155);
/* oklch */ color: oklch(39.2% 0.179 291.4);
Tailwind
colors: {
  custom: {
    50: '#8763ba',
    500: '#4c239b',
    950: '#000000',
  },
}
SCSS
$custom: #4c239b;
$custom-light: #8763ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4c239b",
  "rgb": {
    "r": 76,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 260.5,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39194,
    "c": 0.1791,
    "h": 291.4
  },
  "luminance": 0.05105
}

Semantic roles & 50–950 ramp

primary
#4C239B
secondary
#9DBF5A
accent
#E642AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4C239B

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

Preview Lab → · Contrast checker → · Palette generator →

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