#4A157F#4A157F

#4A157F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.162 H 300.4°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#4A157F
RGBrgb(74, 21, 127)
HSLhsl(270, 72%, 29%)
HSVhsv(270, 83%, 50%)
CMYKcmyk(41.7%, 83.5%, 0%, 50.2%)
CIE-LABlab(22.03, 44.87, -48.85)
CIE-LCHlch(22.03, 66.33, 312.57°)
OKLaboklab(34.85% 0.082 -0.1397)
OKLCHoklch(34.85% 0.162 300.4)
XYZxyz(6.9220, 3.5244, 20.3902)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A157F #4A7F15
analogous
#15157F #4A157F #7F157F
triadic
#4A157F #7F4A15 #157F4A
tetradic
#4A157F #7F1515 #4A7F15 #157F7F
square
#4A157F #7F1515 #4A7F15 #157F7F
split-complementary
#4A157F #7F7F15 #157F15
monochromatic
#0F041A #2B0C4A #4A157F #691EB4 #8731DD

Accessibility & contrast

On white

12.32
#4A157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4A157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A157F
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A157F#FFFFFF#000000##FFFFFF
##4A157F1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a157f;
/* rgb */ color: rgb(74, 21, 127);
/* oklch */ color: oklch(34.8% 0.162 300.4);
Tailwind
colors: {
  custom: {
    50: '#835aa5',
    500: '#4a157f',
    950: '#000000',
  },
}
SCSS
$custom: #4a157f;
$custom-light: #835aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a157f",
  "rgb": {
    "r": 74,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 270,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34846,
    "c": 0.16197,
    "h": 300.4
  },
  "luminance": 0.03524
}

Semantic roles & 50–950 ramp

primary
#4A157F
secondary
#78B43C
accent
#EE3994
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A157F

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

Preview Lab → · Contrast checker → · Palette generator →

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