#4C247E#4C247E

#4C247E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.144 H 299.6°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#4C247E
RGBrgb(76, 36, 126)
HSLhsl(267, 56%, 32%)
HSVhsv(267, 71%, 49%)
CMYKcmyk(39.7%, 71.4%, 0%, 50.6%)
CIE-LABlab(24.65, 38.04, -43.93)
CIE-LCHlch(24.65, 58.11, 310.89°)
OKLaboklab(36.72% 0.0711 -0.1253)
OKLCHoklch(36.72% 0.144 299.6)
XYZxyz(7.3763, 4.3045, 20.1769)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C247E #567E24
analogous
#24297E #4C247E #79247E
triadic
#4C247E #7E4C24 #247E4C
tetradic
#4C247E #7E2429 #567E24 #247E79
square
#4C247E #7E2429 #567E24 #247E79
split-complementary
#4C247E #7E7924 #297E24
monochromatic
#13091F #2F164E #4C247E #6932AE #8750CD

Accessibility & contrast

On white

11.28
#4C247E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4C247E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C247E
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C247E#FFFFFF#000000##FFFFFF
##4C247E1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#003A7C
Tritanopia (blue-blind)
#41394E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4c247e;
/* rgb */ color: rgb(76, 36, 126);
/* oklch */ color: oklch(36.7% 0.144 299.6);
Tailwind
colors: {
  custom: {
    50: '#8362a4',
    500: '#4c247e',
    950: '#000000',
  },
}
SCSS
$custom: #4c247e;
$custom-light: #8362a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c247e",
  "rgb": {
    "r": 76,
    "g": 36,
    "b": 126
  },
  "hsl": {
    "h": 266.667,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36724,
    "c": 0.14403,
    "h": 299.6
  },
  "luminance": 0.04305
}

Semantic roles & 50–950 ramp

primary
#4C247E
secondary
#84B04E
accent
#DF499C
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C247E

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

Preview Lab → · Contrast checker → · Palette generator →

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