#4A158D#4A158D

#4A158D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.177 H 295.9°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#4A158D
RGBrgb(74, 21, 141)
HSLhsl(267, 74%, 32%)
HSVhsv(267, 85%, 55%)
CMYKcmyk(47.5%, 85.1%, 0%, 44.7%)
CIE-LABlab(23.39, 48.41, -55.42)
CIE-LCHlch(23.39, 73.59, 311.14°)
OKLaboklab(36.2% 0.077 -0.159)
OKLCHoklch(36.2% 0.177 295.9)
XYZxyz(7.8986, 3.9151, 25.5337)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A158D #588D15
analogous
#151C8D #4A158D #86158D
triadic
#4A158D #8D4A15 #158D4A
tetradic
#4A158D #8D151C #588D15 #158D86
square
#4A158D #8D151C #588D15 #158D86
split-complementary
#4A158D #8D8615 #1C8D15
monochromatic
#120522 #2E0D58 #4A158D #661DC2 #843BE2

Accessibility & contrast

On white

11.78
#4A158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4A158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A158D
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A158D#FFFFFF#000000##FFFFFF
##4A158D1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#373953
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4a158d;
/* rgb */ color: rgb(74, 21, 141);
/* oklch */ color: oklch(36.2% 0.177 295.9);
Tailwind
colors: {
  custom: {
    50: '#845baf',
    500: '#4a158d',
    950: '#000000',
  },
}
SCSS
$custom: #4a158d;
$custom-light: #845baf;
$custom-dark: #000000;
JSON
{
  "hex": "#4a158d",
  "rgb": {
    "r": 74,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 266.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36196,
    "c": 0.17664,
    "h": 295.9
  },
  "luminance": 0.03915
}

Semantic roles & 50–950 ramp

primary
#4A158D
secondary
#87C13D
accent
#F1379F
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4A158D

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

Preview Lab → · Contrast checker → · Palette generator →

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