#4B128F#4B128F

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

Color values

HEX#4B128F
RGBrgb(75, 18, 143)
HSLhsl(267, 78%, 32%)
HSVhsv(267, 87%, 56%)
CMYKcmyk(47.6%, 87.4%, 0%, 43.9%)
CIE-LABlab(23.38, 50.08, -56.68)
CIE-LCHlch(23.38, 75.63, 311.46°)
OKLaboklab(36.28% 0.0797 -0.1626)
OKLCHoklch(36.28% 0.181 296.1)
XYZxyz(8.0745, 3.9114, 26.3108)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B128F #568F12
analogous
#12188F #4B128F #8A128F
triadic
#4B128F #8F4B12 #128F4B
tetradic
#4B128F #8F1218 #568F12 #128F8A
square
#4B128F #8F1218 #568F12 #128F8A
split-complementary
#4B128F #8F8A12 #188F12
monochromatic
#120422 #2E0B59 #4B128F #6819C5 #8636E6

Accessibility & contrast

On white

11.78
#4B128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B128F
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B128F#FFFFFF#000000##FFFFFF
##4B128F1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b128f;
/* rgb */ color: rgb(75, 18, 143);
/* oklch */ color: oklch(36.3% 0.181 296.1);
Tailwind
colors: {
  custom: {
    50: '#855ab1',
    500: '#4b128f',
    950: '#000000',
  },
}
SCSS
$custom: #4b128f;
$custom-light: #855ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#4b128f",
  "rgb": {
    "r": 75,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 267.36,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36278,
    "c": 0.18107,
    "h": 296.1
  },
  "luminance": 0.03912
}

Semantic roles & 50–950 ramp

primary
#4B128F
secondary
#84C33A
accent
#F4349C
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4B128F

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

Preview Lab → · Contrast checker → · Palette generator →

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