#4A2987#4A2987

#4A2987 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.0% C 0.148 H 294.4°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#4A2987
RGBrgb(74, 41, 135)
HSLhsl(261, 53%, 35%)
HSVhsv(261, 70%, 53%)
CMYKcmyk(45.2%, 69.6%, 0%, 47.1%)
CIE-LABlab(26.13, 37.43, -47.19)
CIE-LCHlch(26.13, 60.23, 308.41°)
OKLaboklab(37.96% 0.0611 -0.135)
OKLCHoklch(37.96% 0.148 294.4)
XYZxyz(7.9890, 4.7908, 23.4208)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2987 #668729
analogous
#293787 #4A2987 #792987
triadic
#4A2987 #874A29 #29874A
tetradic
#4A2987 #872937 #668729 #298779
square
#4A2987 #872937 #668729 #298779
split-complementary
#4A2987 #877929 #378729
monochromatic
#170C29 #301B58 #4A2987 #6437B6 #845DCE

Accessibility & contrast

On white

10.72
#4A2987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4A2987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2987
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2987#FFFFFF#000000##FFFFFF
##4A29871.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#394054
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4a2987;
/* rgb */ color: rgb(74, 41, 135);
/* oklch */ color: oklch(38.0% 0.148 294.4);
Tailwind
colors: {
  custom: {
    50: '#8265ab',
    500: '#4a2987',
    950: '#000000',
  },
}
SCSS
$custom: #4a2987;
$custom-light: #8265ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2987",
  "rgb": {
    "r": 74,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 261.064,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37956,
    "c": 0.14814,
    "h": 294.4
  },
  "luminance": 0.04791
}

Semantic roles & 50–950 ramp

primary
#4A2987
secondary
#93B359
accent
#DD4BAA
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4A2987

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

Preview Lab → · Contrast checker → · Palette generator →

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