#4B127F#4B127F

#4B127F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.165 H 301.4°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#4B127F
RGBrgb(75, 18, 127)
HSLhsl(271, 75%, 28%)
HSVhsv(271, 86%, 50%)
CMYKcmyk(40.9%, 85.8%, 0%, 50.2%)
CIE-LABlab(21.80, 46.12, -49.22)
CIE-LCHlch(21.80, 67.45, 313.14°)
OKLaboklab(34.72% 0.0858 -0.1407)
OKLCHoklch(34.72% 0.165 301.4)
XYZxyz(6.9478, 3.4607, 20.3765)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B127F #467F12
analogous
#14127F #4B127F #7F127C
triadic
#4B127F #7F4B12 #127F4B
tetradic
#4B127F #7F1412 #467F12 #127C7F
square
#4B127F #7F1412 #467F12 #127C7F
split-complementary
#4B127F #7C7F12 #127F14
monochromatic
#10041B #2B0A49 #4B127F #6B1AB5 #8A2BE1

Accessibility & contrast

On white

12.41
#4B127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4B127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B127F
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B127F#FFFFFF#000000##FFFFFF
##4B127F1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#3F324A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4b127f;
/* rgb */ color: rgb(75, 18, 127);
/* oklch */ color: oklch(34.7% 0.165 301.4);
Tailwind
colors: {
  custom: {
    50: '#8359a5',
    500: '#4b127f',
    950: '#000000',
  },
}
SCSS
$custom: #4b127f;
$custom-light: #8359a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4b127f",
  "rgb": {
    "r": 75,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 271.376,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34717,
    "c": 0.16479,
    "h": 301.4
  },
  "luminance": 0.03461
}

Semantic roles & 50–950 ramp

primary
#4B127F
secondary
#74B538
accent
#F23690
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B127F

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

Preview Lab → · Contrast checker → · Palette generator →

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