#4C246B#4C246B

#4C246B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.2% C 0.121 H 307.2°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#4C246B
RGBrgb(76, 36, 107)
HSLhsl(274, 50%, 28%)
HSVhsv(274, 66%, 42%)
CMYKcmyk(29%, 66.4%, 0%, 58%)
CIE-LABlab(23.20, 32.99, -34.12)
CIE-LCHlch(23.20, 47.47, 314.04°)
OKLaboklab(35.22% 0.0732 -0.0964)
OKLCHoklch(35.22% 0.121 307.2)
XYZxyz(6.2647, 3.8599, 14.3221)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C246B #436B24
analogous
#29246B #4C246B #6B2466
triadic
#4C246B #6B4C24 #246B4C
tetradic
#4C246B #6B2924 #436B24 #24666B
square
#4C246B #6B2924 #436B24 #24666B
split-complementary
#4C246B #666B24 #246B29
monochromatic
#100817 #2B153D #4C246B #6D3399 #8C48C1

Accessibility & contrast

On white

11.85
#4C246B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4C246B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C246B
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C246B#FFFFFF#000000##FFFFFF
##4C246B1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366D
Deuteranopia (green-blind)
#163869
Tritanopia (blue-blind)
#473244
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4c246b;
/* rgb */ color: rgb(76, 36, 107);
/* oklch */ color: oklch(35.2% 0.121 307.2);
Tailwind
colors: {
  custom: {
    50: '#816196',
    500: '#4c246b',
    950: '#000000',
  },
}
SCSS
$custom: #4c246b;
$custom-light: #816196;
$custom-dark: #000000;
JSON
{
  "hex": "#4c246b",
  "rgb": {
    "r": 76,
    "g": 36,
    "b": 107
  },
  "hsl": {
    "h": 273.803,
    "s": 49.65,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35222,
    "c": 0.12108,
    "h": 307.2
  },
  "luminance": 0.0386
}

Semantic roles & 50–950 ramp

primary
#4C246B
secondary
#709E4D
accent
#D94F8B
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4C246B

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

Preview Lab → · Contrast checker → · Palette generator →

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