#4C239E#4C239E

#4C239E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.183 H 290.7°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#4C239E
RGBrgb(76, 35, 158)
HSLhsl(260, 64%, 38%)
HSVhsv(260, 78%, 62%)
CMYKcmyk(51.9%, 77.8%, 0%, 38%)
CIE-LABlab(27.32, 47.36, -59.43)
CIE-LCHlch(27.32, 76.00, 308.55°)
OKLaboklab(39.48% 0.0644 -0.1708)
OKLCHoklch(39.48% 0.183 290.7)
XYZxyz(9.7513, 5.2068, 32.8323)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C239E #759E23
analogous
#23379E #4C239E #89239E
triadic
#4C239E #9E4C23 #239E4C
tetradic
#4C239E #9E2337 #759E23 #239E89
square
#4C239E #9E2337 #759E23 #239E89
split-complementary
#4C239E #9E8923 #379E23
monochromatic
#1C0D3A #34186C #4C239E #642ED0 #8960DC

Accessibility & contrast

On white

10.29
#4C239E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4C239E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C239E
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C239E#FFFFFF#000000##FFFFFF
##4C239E1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#003E9C
Tritanopia (blue-blind)
#2F4660
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c239e;
/* rgb */ color: rgb(76, 35, 158);
/* oklch */ color: oklch(39.5% 0.183 290.7);
Tailwind
colors: {
  custom: {
    50: '#8763bc',
    500: '#4c239e',
    950: '#000000',
  },
}
SCSS
$custom: #4c239e;
$custom-light: #8763bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c239e",
  "rgb": {
    "r": 76,
    "g": 35,
    "b": 158
  },
  "hsl": {
    "h": 260,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.3948,
    "c": 0.18252,
    "h": 290.7
  },
  "luminance": 0.05207
}

Semantic roles & 50–950 ramp

primary
#4C239E
secondary
#9FC15C
accent
#E741B0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4C239E

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

Preview Lab → · Contrast checker → · Palette generator →

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