#4A2387#4A2387

#4A2387 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.156 H 295.6°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#4A2387
RGBrgb(74, 35, 135)
HSLhsl(263, 59%, 33%)
HSVhsv(263, 74%, 53%)
CMYKcmyk(45.2%, 74.1%, 0%, 47.1%)
CIE-LABlab(24.97, 40.64, -49.08)
CIE-LCHlch(24.97, 63.72, 309.63°)
OKLaboklab(37.13% 0.0673 -0.1405)
OKLCHoklch(37.13% 0.156 295.6)
XYZxyz(7.7971, 4.4070, 23.3568)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2387 #608723
analogous
#232E87 #4A2387 #7C2387
triadic
#4A2387 #874A23 #23874A
tetradic
#4A2387 #87232E #608723 #23877C
square
#4A2387 #87232E #608723 #23877C
split-complementary
#4A2387 #877C23 #2E8723
monochromatic
#150A26 #2F1656 #4A2387 #6530B8 #8452D2

Accessibility & contrast

On white

11.16
#4A2387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4A2387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2387
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2387#FFFFFF#000000##FFFFFF
##4A23871.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#393D53
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4a2387;
/* rgb */ color: rgb(74, 35, 135);
/* oklch */ color: oklch(37.1% 0.156 295.6);
Tailwind
colors: {
  custom: {
    50: '#8362ab',
    500: '#4a2387',
    950: '#000000',
  },
}
SCSS
$custom: #4a2387;
$custom-light: #8362ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2387",
  "rgb": {
    "r": 74,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 263.4,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37132,
    "c": 0.15576,
    "h": 295.6
  },
  "luminance": 0.04407
}

Semantic roles & 50–950 ramp

primary
#4A2387
secondary
#8EB650
accent
#E246A5
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A2387

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

Preview Lab → · Contrast checker → · Palette generator →

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