#4C247C#4C247C

#4C247C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.6% C 0.142 H 300.3°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#4C247C
RGBrgb(76, 36, 124)
HSLhsl(267, 55%, 31%)
HSVhsv(267, 71%, 49%)
CMYKcmyk(38.7%, 71%, 0%, 51.4%)
CIE-LABlab(24.49, 37.50, -42.93)
CIE-LCHlch(24.49, 57.00, 311.14°)
OKLaboklab(36.56% 0.0714 -0.1223)
OKLCHoklch(36.56% 0.142 300.3)
XYZxyz(7.2486, 4.2534, 19.5040)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C247C #547C24
analogous
#24287C #4C247C #78247C
triadic
#4C247C #7C4C24 #247C4C
tetradic
#4C247C #7C2428 #547C24 #247C78
square
#4C247C #7C2428 #547C24 #247C78
split-complementary
#4C247C #7C7824 #287C24
monochromatic
#12081D #2F164D #4C247C #6932AB #884FCC

Accessibility & contrast

On white

11.35
#4C247C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4C247C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C247C
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C247C#FFFFFF#000000##FFFFFF
##4C247C1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#003A7A
Tritanopia (blue-blind)
#41394D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c247c;
/* rgb */ color: rgb(76, 36, 124);
/* oklch */ color: oklch(36.6% 0.142 300.3);
Tailwind
colors: {
  custom: {
    50: '#8262a3',
    500: '#4c247c',
    950: '#000000',
  },
}
SCSS
$custom: #4c247c;
$custom-light: #8262a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c247c",
  "rgb": {
    "r": 76,
    "g": 36,
    "b": 124
  },
  "hsl": {
    "h": 267.273,
    "s": 55,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36558,
    "c": 0.14164,
    "h": 300.3
  },
  "luminance": 0.04253
}

Semantic roles & 50–950 ramp

primary
#4C247C
secondary
#82AE4D
accent
#DE499B
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C247C

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

Preview Lab → · Contrast checker → · Palette generator →

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