#4A128F#4A128F

#4A128F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.181 H 295.6°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#4A128F
RGBrgb(74, 18, 143)
HSLhsl(267, 78%, 32%)
HSVhsv(267, 87%, 56%)
CMYKcmyk(48.3%, 87.4%, 0%, 43.9%)
CIE-LABlab(23.24, 49.95, -56.91)
CIE-LCHlch(23.24, 75.72, 311.27°)
OKLaboklab(36.16% 0.0781 -0.1633)
OKLCHoklch(36.16% 0.181 295.6)
XYZxyz(7.9969, 3.8714, 26.3072)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A128F #578F12
analogous
#12198F #4A128F #89128F
triadic
#4A128F #8F4A12 #128F4A
tetradic
#4A128F #8F1219 #578F12 #128F89
square
#4A128F #8F1219 #578F12 #128F89
split-complementary
#4A128F #8F8912 #198F12
monochromatic
#120422 #2E0B59 #4A128F #6619C5 #8536E6

Accessibility & contrast

On white

11.83
#4A128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A128F
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A128F#FFFFFF#000000##FFFFFF
##4A128F1.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#363954
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4a128f;
/* rgb */ color: rgb(74, 18, 143);
/* oklch */ color: oklch(36.2% 0.181 295.6);
Tailwind
colors: {
  custom: {
    50: '#855ab1',
    500: '#4a128f',
    950: '#000000',
  },
}
SCSS
$custom: #4a128f;
$custom-light: #855ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a128f",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 266.88,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36156,
    "c": 0.18099,
    "h": 295.6
  },
  "luminance": 0.03872
}

Semantic roles & 50–950 ramp

primary
#4A128F
secondary
#86C33A
accent
#F4349E
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4A128F

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

Preview Lab → · Contrast checker → · Palette generator →

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