#4A127E#4A127E

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

Color values

HEX#4A127E
RGBrgb(74, 18, 126)
HSLhsl(271, 75%, 28%)
HSVhsv(271, 86%, 49%)
CMYKcmyk(41.3%, 85.7%, 0%, 50.6%)
CIE-LABlab(21.56, 45.72, -48.99)
CIE-LCHlch(21.56, 67.01, 313.03°)
OKLaboklab(34.49% 0.0845 -0.1401)
OKLCHoklch(34.49% 0.164 301.1)
XYZxyz(6.8053, 3.3948, 20.0313)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A127E #467E12
analogous
#14127E #4A127E #7E127C
triadic
#4A127E #7E4A12 #127E4A
tetradic
#4A127E #7E1412 #467E12 #127C7E
square
#4A127E #7E1412 #467E12 #127C7E
split-complementary
#4A127E #7C7E12 #127E14
monochromatic
#10041B #2B0A48 #4A127E #691AB4 #892AE1

Accessibility & contrast

On white

12.51
#4A127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A127E
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A127E#FFFFFF#000000##FFFFFF
##4A127E1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a127e;
/* rgb */ color: rgb(74, 18, 126);
/* oklch */ color: oklch(34.5% 0.164 301.1);
Tailwind
colors: {
  custom: {
    50: '#8359a4',
    500: '#4a127e',
    950: '#000000',
  },
}
SCSS
$custom: #4a127e;
$custom-light: #8359a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a127e",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 271.111,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3449,
    "c": 0.16361,
    "h": 301.1
  },
  "luminance": 0.03395
}

Semantic roles & 50–950 ramp

primary
#4A127E
secondary
#74B438
accent
#F23690
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A127E

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

Preview Lab → · Contrast checker → · Palette generator →

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