#4A1987#4A1987

#4A1987 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.167 H 297.2°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#4A1987
RGBrgb(74, 25, 135)
HSLhsl(267, 69%, 31%)
HSVhsv(267, 81%, 53%)
CMYKcmyk(45.2%, 81.5%, 0%, 47.1%)
CIE-LABlab(23.34, 45.31, -51.75)
CIE-LCHlch(23.34, 68.79, 311.20°)
OKLaboklab(35.98% 0.0762 -0.1482)
OKLCHoklch(35.98% 0.167 297.2)
XYZxyz(7.5437, 3.9002, 23.2723)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1987 #568719
analogous
#191F87 #4A1987 #811987
triadic
#4A1987 #874A19 #19874A
tetradic
#4A1987 #87191F #568719 #198781
square
#4A1987 #87191F #568719 #198781
split-complementary
#4A1987 #878119 #1F8719
monochromatic
#110620 #2E0F53 #4A1987 #6623BB #853FDB

Accessibility & contrast

On white

11.80
#4A1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1987
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1987#FFFFFF#000000##FFFFFF
##4A19871.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#3A3850
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4a1987;
/* rgb */ color: rgb(74, 25, 135);
/* oklch */ color: oklch(36.0% 0.167 297.2);
Tailwind
colors: {
  custom: {
    50: '#835cab',
    500: '#4a1987',
    950: '#000000',
  },
}
SCSS
$custom: #4a1987;
$custom-light: #835cab;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1987",
  "rgb": {
    "r": 74,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 266.727,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35984,
    "c": 0.1667,
    "h": 297.2
  },
  "luminance": 0.039
}

Semantic roles & 50–950 ramp

primary
#4A1987
secondary
#85BA41
accent
#EC3C9D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #4A1987

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

Preview Lab → · Contrast checker → · Palette generator →

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