#4A2C87#4A2C87

#4A2C87 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.4% C 0.144 H 293.6°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#4A2C87
RGBrgb(74, 44, 135)
HSLhsl(260, 51%, 35%)
HSVhsv(260, 67%, 53%)
CMYKcmyk(45.2%, 67.4%, 0%, 47.1%)
CIE-LABlab(26.75, 35.72, -46.18)
CIE-LCHlch(26.75, 58.39, 307.72°)
OKLaboklab(38.4% 0.0578 -0.132)
OKLCHoklch(38.4% 0.144 293.6)
XYZxyz(8.0967, 5.0063, 23.4567)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2C87 #69872C
analogous
#2C3C87 #4A2C87 #772C87
triadic
#4A2C87 #874A2C #2C874A
tetradic
#4A2C87 #872C3C #69872C #2C8777
square
#4A2C87 #872C3C #69872C #2C8777
split-complementary
#4A2C87 #87772C #3C872C
monochromatic
#170E2B #311D59 #4A2C87 #633BB5 #8562CC

Accessibility & contrast

On white

10.49
#4A2C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4A2C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2C87
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2C87#FFFFFF#000000##FFFFFF
##4A2C871.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#394255
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4a2c87;
/* rgb */ color: rgb(74, 44, 135);
/* oklch */ color: oklch(38.4% 0.144 293.6);
Tailwind
colors: {
  custom: {
    50: '#8267ab',
    500: '#4a2c87',
    950: '#000000',
  },
}
SCSS
$custom: #4a2c87;
$custom-light: #8267ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2c87",
  "rgb": {
    "r": 74,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 259.78,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38403,
    "c": 0.14409,
    "h": 293.6
  },
  "luminance": 0.05006
}

Semantic roles & 50–950 ramp

primary
#4A2C87
secondary
#96B25D
accent
#DA4DAC
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4A2C87

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

Preview Lab → · Contrast checker → · Palette generator →

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