#4A127F#4A127F

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

Color values

HEX#4A127F
RGBrgb(74, 18, 127)
HSLhsl(271, 75%, 28%)
HSVhsv(271, 86%, 50%)
CMYKcmyk(41.7%, 85.8%, 0%, 50.2%)
CIE-LABlab(21.66, 45.97, -49.47)
CIE-LCHlch(21.66, 67.53, 312.90°)
OKLaboklab(34.59% 0.0842 -0.1415)
OKLCHoklch(34.59% 0.165 300.7)
XYZxyz(6.8702, 3.4207, 20.3729)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A127F #477F12
analogous
#14127F #4A127F #7F127D
triadic
#4A127F #7F4A12 #127F4A
tetradic
#4A127F #7F1412 #477F12 #127D7F
square
#4A127F #7F1412 #477F12 #127D7F
split-complementary
#4A127F #7D7F12 #127F14
monochromatic
#10041B #2B0A49 #4A127F #691AB5 #882BE1

Accessibility & contrast

On white

12.47
#4A127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A127F
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A127F#FFFFFF#000000##FFFFFF
##4A127F1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#3E324A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4a127f;
/* rgb */ color: rgb(74, 18, 127);
/* oklch */ color: oklch(34.6% 0.165 300.7);
Tailwind
colors: {
  custom: {
    50: '#8359a5',
    500: '#4a127f',
    950: '#000000',
  },
}
SCSS
$custom: #4a127f;
$custom-light: #8359a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a127f",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 270.826,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34585,
    "c": 0.16462,
    "h": 300.7
  },
  "luminance": 0.03421
}

Semantic roles & 50–950 ramp

primary
#4A127F
secondary
#75B538
accent
#F23691
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A127F

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

Preview Lab → · Contrast checker → · Palette generator →

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