#4C246E#4C246E

#4C246E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.4% C 0.125 H 305.8°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#4C246E
RGBrgb(76, 36, 110)
HSLhsl(272, 51%, 29%)
HSVhsv(272, 67%, 43%)
CMYKcmyk(30.9%, 67.3%, 0%, 56.9%)
CIE-LABlab(23.42, 33.77, -35.71)
CIE-LCHlch(23.42, 49.15, 313.40°)
OKLaboklab(35.45% 0.073 -0.1011)
OKLCHoklch(35.45% 0.125 305.8)
XYZxyz(6.4252, 3.9241, 15.1678)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C246E #466E24
analogous
#27246E #4C246E #6E246B
triadic
#4C246E #6E4C24 #246E4C
tetradic
#4C246E #6E2724 #466E24 #246B6E
square
#4C246E #6E2724 #466E24 #246B6E
split-complementary
#4C246E #6B6E24 #246E27
monochromatic
#100817 #2C1540 #4C246E #6C339C #8B49C3

Accessibility & contrast

On white

11.77
#4C246E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4C246E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C246E
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C246E#FFFFFF#000000##FFFFFF
##4C246E1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003770
Deuteranopia (green-blind)
#12386C
Tritanopia (blue-blind)
#463445
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c246e;
/* rgb */ color: rgb(76, 36, 110);
/* oklch */ color: oklch(35.4% 0.125 305.8);
Tailwind
colors: {
  custom: {
    50: '#816198',
    500: '#4c246e',
    950: '#000000',
  },
}
SCSS
$custom: #4c246e;
$custom-light: #816198;
$custom-dark: #000000;
JSON
{
  "hex": "#4c246e",
  "rgb": {
    "r": 76,
    "g": 36,
    "b": 110
  },
  "hsl": {
    "h": 272.432,
    "s": 50.685,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35447,
    "c": 0.12472,
    "h": 305.8
  },
  "luminance": 0.03924
}

Semantic roles & 50–950 ramp

primary
#4C246E
secondary
#73A14D
accent
#DA4E8E
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4C246E

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

Preview Lab → · Contrast checker → · Palette generator →

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