#4A127A#4A127A

#4A127A is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.160 H 302.6°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#4A127A
RGBrgb(74, 18, 122)
HSLhsl(272, 74%, 27%)
HSVhsv(272, 85%, 48%)
CMYKcmyk(39.3%, 85.2%, 0%, 52.2%)
CIE-LABlab(21.18, 44.74, -47.06)
CIE-LCHlch(21.18, 64.94, 313.56°)
OKLaboklab(34.11% 0.0859 -0.1344)
OKLCHoklch(34.11% 0.16 302.6)
XYZxyz(6.5524, 3.2936, 18.6991)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A127A #427A12
analogous
#16127A #4A127A #7A1276
triadic
#4A127A #7A4A12 #127A4A
tetradic
#4A127A #7A1612 #427A12 #12767A
square
#4A127A #7A1612 #427A12 #12767A
split-complementary
#4A127A #767A12 #127A16
monochromatic
#10041B #2A0A45 #4A127A #6A1AAF #8A27DF

Accessibility & contrast

On white

12.66
#4A127A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4A127A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A127A
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A127A#FFFFFF#000000##FFFFFF
##4A127A1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#003278
Tritanopia (blue-blind)
#402F47
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4a127a;
/* rgb */ color: rgb(74, 18, 122);
/* oklch */ color: oklch(34.1% 0.160 302.6);
Tailwind
colors: {
  custom: {
    50: '#8259a1',
    500: '#4a127a',
    950: '#000000',
  },
}
SCSS
$custom: #4a127a;
$custom-light: #8259a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a127a",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 122
  },
  "hsl": {
    "h": 272.308,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34113,
    "c": 0.15952,
    "h": 302.6
  },
  "luminance": 0.03294
}

Semantic roles & 50–950 ramp

primary
#4A127A
secondary
#6FB038
accent
#F1378D
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A127A

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

Preview Lab → · Contrast checker → · Palette generator →

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