#4A2E87#4A2E87

#4A2E87 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.7% C 0.141 H 293.1°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#4A2E87
RGBrgb(74, 46, 135)
HSLhsl(259, 49%, 35%)
HSVhsv(259, 66%, 53%)
CMYKcmyk(45.2%, 65.9%, 0%, 47.1%)
CIE-LABlab(27.18, 34.56, -45.48)
CIE-LCHlch(27.18, 57.12, 307.23°)
OKLaboklab(38.71% 0.0555 -0.1299)
OKLCHoklch(38.71% 0.141 293.1)
XYZxyz(8.1730, 5.1589, 23.4821)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2E87 #6B872E
analogous
#2E3F87 #4A2E87 #762E87
triadic
#4A2E87 #874A2E #2E874A
tetradic
#4A2E87 #872E3F #6B872E #2E8776
square
#4A2E87 #872E3F #6B872E #2E8776
split-complementary
#4A2E87 #87762E #3F872E
monochromatic
#180F2C #311E59 #4A2E87 #633EB5 #8565CA

Accessibility & contrast

On white

10.34
#4A2E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4A2E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2E87
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2E87#FFFFFF#000000##FFFFFF
##4A2E871.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#394356
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4a2e87;
/* rgb */ color: rgb(74, 46, 135);
/* oklch */ color: oklch(38.7% 0.141 293.1);
Tailwind
colors: {
  custom: {
    50: '#8268ab',
    500: '#4a2e87',
    950: '#000000',
  },
}
SCSS
$custom: #4a2e87;
$custom-light: #8268ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2e87",
  "rgb": {
    "r": 74,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 258.876,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38714,
    "c": 0.1413,
    "h": 293.1
  },
  "luminance": 0.05159
}

Semantic roles & 50–950 ramp

primary
#4A2E87
secondary
#98B160
accent
#D94FAD
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4A2E87

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

Preview Lab → · Contrast checker → · Palette generator →

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