#4A1989#4A1989

#4A1989 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.169 H 296.6°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#4A1989
RGBrgb(74, 25, 137)
HSLhsl(266, 69%, 32%)
HSVhsv(266, 82%, 54%)
CMYKcmyk(46%, 81.8%, 0%, 46.3%)
CIE-LABlab(23.53, 45.83, -52.69)
CIE-LCHlch(23.53, 69.84, 311.02°)
OKLaboklab(36.18% 0.0756 -0.151)
OKLCHoklch(36.18% 0.169 296.6)
XYZxyz(7.6858, 3.9571, 24.0209)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1989 #588919
analogous
#192089 #4A1989 #821989
triadic
#4A1989 #894A19 #19894A
tetradic
#4A1989 #891920 #588919 #198982
square
#4A1989 #891920 #588919 #198982
split-complementary
#4A1989 #898219 #208919
monochromatic
#120621 #2E1055 #4A1989 #6622BD #8440DC

Accessibility & contrast

On white

11.72
#4A1989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4A1989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1989
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1989#FFFFFF#000000##FFFFFF
##4A19891.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398C
Deuteranopia (green-blind)
#003787
Tritanopia (blue-blind)
#393951
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4a1989;
/* rgb */ color: rgb(74, 25, 137);
/* oklch */ color: oklch(36.2% 0.169 296.6);
Tailwind
colors: {
  custom: {
    50: '#845dac',
    500: '#4a1989',
    950: '#000000',
  },
}
SCSS
$custom: #4a1989;
$custom-light: #845dac;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1989",
  "rgb": {
    "r": 74,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 266.25,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36175,
    "c": 0.16887,
    "h": 296.6
  },
  "luminance": 0.03957
}

Semantic roles & 50–950 ramp

primary
#4A1989
secondary
#87BC41
accent
#EC3C9F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4A1989

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

Preview Lab → · Contrast checker → · Palette generator →

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