#4C256C#4C256C

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

Color values

HEX#4C256C
RGBrgb(76, 37, 108)
HSLhsl(273, 49%, 28%)
HSVhsv(273, 66%, 42%)
CMYKcmyk(29.6%, 65.7%, 0%, 57.6%)
CIE-LABlab(23.48, 32.69, -34.32)
CIE-LCHlch(23.48, 47.40, 313.61°)
OKLaboklab(35.45% 0.0718 -0.097)
OKLCHoklch(35.45% 0.121 306.5)
XYZxyz(6.3483, 3.9424, 14.6110)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C256C #456C25
analogous
#28256C #4C256C #6C2568
triadic
#4C256C #6C4C25 #256C4C
tetradic
#4C256C #6C2825 #456C25 #25686C
square
#4C256C #6C2825 #456C25 #25686C
split-complementary
#4C256C #686C25 #256C28
monochromatic
#100817 #2C153E #4C256C #6C359A #8C4AC1

Accessibility & contrast

On white

11.74
#4C256C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4C256C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C256C
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C256C#FFFFFF#000000##FFFFFF
##4C256C1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00376E
Deuteranopia (green-blind)
#16386A
Tritanopia (blue-blind)
#473345
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c256c;
/* rgb */ color: rgb(76, 37, 108);
/* oklch */ color: oklch(35.4% 0.121 306.5);
Tailwind
colors: {
  custom: {
    50: '#816297',
    500: '#4c256c',
    950: '#000000',
  },
}
SCSS
$custom: #4c256c;
$custom-light: #816297;
$custom-dark: #000000;
JSON
{
  "hex": "#4c256c",
  "rgb": {
    "r": 76,
    "g": 37,
    "b": 108
  },
  "hsl": {
    "h": 272.958,
    "s": 48.966,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35445,
    "c": 0.12073,
    "h": 306.5
  },
  "luminance": 0.03942
}

Semantic roles & 50–950 ramp

primary
#4C256C
secondary
#729F4E
accent
#D94F8D
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4C256C

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

Preview Lab → · Contrast checker → · Palette generator →

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