#4C247F#4C247F

#4C247F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.145 H 299.2°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#4C247F
RGBrgb(76, 36, 127)
HSLhsl(266, 56%, 32%)
HSVhsv(266, 72%, 50%)
CMYKcmyk(40.2%, 71.7%, 0%, 50.2%)
CIE-LABlab(24.74, 38.31, -44.43)
CIE-LCHlch(24.74, 58.67, 310.77°)
OKLaboklab(36.81% 0.0709 -0.1267)
OKLCHoklch(36.81% 0.145 299.2)
XYZxyz(7.4412, 4.3305, 20.5184)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C247F #577F24
analogous
#24297F #4C247F #7A247F
triadic
#4C247F #7F4C24 #247F4C
tetradic
#4C247F #7F2429 #577F24 #247F7A
square
#4C247F #7F2429 #577F24 #247F7A
split-complementary
#4C247F #7F7A24 #297F24
monochromatic
#130920 #2F164F #4C247F #6932AF #8750CD

Accessibility & contrast

On white

11.25
#4C247F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4C247F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C247F
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C247F#FFFFFF#000000##FFFFFF
##4C247F1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#403A4E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4c247f;
/* rgb */ color: rgb(76, 36, 127);
/* oklch */ color: oklch(36.8% 0.145 299.2);
Tailwind
colors: {
  custom: {
    50: '#8362a5',
    500: '#4c247f',
    950: '#000000',
  },
}
SCSS
$custom: #4c247f;
$custom-light: #8362a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c247f",
  "rgb": {
    "r": 76,
    "g": 36,
    "b": 127
  },
  "hsl": {
    "h": 266.374,
    "s": 55.828,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36808,
    "c": 0.14522,
    "h": 299.2
  },
  "luminance": 0.04331
}

Semantic roles & 50–950 ramp

primary
#4C247F
secondary
#85B14E
accent
#DF499D
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C247F

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

Preview Lab → · Contrast checker → · Palette generator →

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