#4B127D#4B127D

#4B127D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.163 H 302.1°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#4B127D
RGBrgb(75, 18, 125)
HSLhsl(272, 75%, 28%)
HSVhsv(272, 86%, 49%)
CMYKcmyk(40%, 85.6%, 0%, 51%)
CIE-LABlab(21.61, 45.63, -48.26)
CIE-LCHlch(21.61, 66.42, 313.40°)
OKLaboklab(34.53% 0.0865 -0.1379)
OKLCHoklch(34.53% 0.163 302.1)
XYZxyz(6.8187, 3.4091, 19.6968)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B127D #447D12
analogous
#16127D #4B127D #7D1279
triadic
#4B127D #7D4B12 #127D4B
tetradic
#4B127D #7D1612 #447D12 #12797D
square
#4B127D #7D1612 #447D12 #12797D
split-complementary
#4B127D #797D12 #127D16
monochromatic
#10041B #2B0A48 #4B127D #6B1AB2 #8B29E0

Accessibility & contrast

On white

12.49
#4B127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4B127D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B127D
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B127D#FFFFFF#000000##FFFFFF
##4B127D1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#403149
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4b127d;
/* rgb */ color: rgb(75, 18, 125);
/* oklch */ color: oklch(34.5% 0.163 302.1);
Tailwind
colors: {
  custom: {
    50: '#8359a4',
    500: '#4b127d',
    950: '#000000',
  },
}
SCSS
$custom: #4b127d;
$custom-light: #8359a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4b127d",
  "rgb": {
    "r": 75,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 271.963,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34529,
    "c": 0.16277,
    "h": 302.1
  },
  "luminance": 0.03409
}

Semantic roles & 50–950 ramp

primary
#4B127D
secondary
#71B338
accent
#F1368E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B127D

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

Preview Lab → · Contrast checker → · Palette generator →

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