#4B127E#4B127E

#4B127E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.6% C 0.164 H 301.7°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#4B127E
RGBrgb(75, 18, 126)
HSLhsl(272, 75%, 28%)
HSVhsv(272, 86%, 49%)
CMYKcmyk(40.5%, 85.7%, 0%, 50.6%)
CIE-LABlab(21.71, 45.88, -48.74)
CIE-LCHlch(21.71, 66.94, 313.26°)
OKLaboklab(34.62% 0.0861 -0.1393)
OKLCHoklch(34.62% 0.164 301.7)
XYZxyz(6.8829, 3.4348, 20.0350)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B127E #457E12
analogous
#15127E #4B127E #7E127B
triadic
#4B127E #7E4B12 #127E4B
tetradic
#4B127E #7E1512 #457E12 #127B7E
square
#4B127E #7E1512 #457E12 #127B7E
split-complementary
#4B127E #7B7E12 #127E15
monochromatic
#10041B #2B0A48 #4B127E #6B1AB4 #8A2AE1

Accessibility & contrast

On white

12.45
#4B127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B127E
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B127E#FFFFFF#000000##FFFFFF
##4B127E1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#40314A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4b127e;
/* rgb */ color: rgb(75, 18, 126);
/* oklch */ color: oklch(34.6% 0.164 301.7);
Tailwind
colors: {
  custom: {
    50: '#8359a4',
    500: '#4b127e',
    950: '#000000',
  },
}
SCSS
$custom: #4b127e;
$custom-light: #8359a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4b127e",
  "rgb": {
    "r": 75,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 271.667,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34623,
    "c": 0.16378,
    "h": 301.7
  },
  "luminance": 0.03435
}

Semantic roles & 50–950 ramp

primary
#4B127E
secondary
#72B438
accent
#F2368F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B127E

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

Preview Lab → · Contrast checker → · Palette generator →

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