#4C128F#4C128F

#4C128F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.181 H 296.7°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#4C128F
RGBrgb(76, 18, 143)
HSLhsl(268, 78%, 32%)
HSVhsv(268, 87%, 56%)
CMYKcmyk(46.9%, 87.4%, 0%, 43.9%)
CIE-LABlab(23.51, 50.20, -56.45)
CIE-LCHlch(23.51, 75.55, 311.65°)
OKLaboklab(36.4% 0.0813 -0.1619)
OKLCHoklch(36.4% 0.181 296.7)
XYZxyz(8.1534, 3.9521, 26.3145)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C128F #558F12
analogous
#12178F #4C128F #8B128F
triadic
#4C128F #8F4C12 #128F4C
tetradic
#4C128F #8F1217 #558F12 #128F8B
square
#4C128F #8F1217 #558F12 #128F8B
split-complementary
#4C128F #8F8B12 #178F12
monochromatic
#120422 #2F0B59 #4C128F #6919C5 #8736E6

Accessibility & contrast

On white

11.73
#4C128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C128F
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C128F#FFFFFF#000000##FFFFFF
##4C128F1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#393954
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c128f;
/* rgb */ color: rgb(76, 18, 143);
/* oklch */ color: oklch(36.4% 0.181 296.7);
Tailwind
colors: {
  custom: {
    50: '#865ab1',
    500: '#4c128f',
    950: '#000000',
  },
}
SCSS
$custom: #4c128f;
$custom-light: #865ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c128f",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 267.84,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36401,
    "c": 0.18116,
    "h": 296.7
  },
  "luminance": 0.03952
}

Semantic roles & 50–950 ramp

primary
#4C128F
secondary
#83C33A
accent
#F4349B
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4C128F

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

Preview Lab → · Contrast checker → · Palette generator →

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