#4A1988#4A1988

#4A1988 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.168 H 296.9°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#4A1988
RGBrgb(74, 25, 136)
HSLhsl(266, 69%, 32%)
HSVhsv(266, 82%, 53%)
CMYKcmyk(45.6%, 81.6%, 0%, 46.7%)
CIE-LABlab(23.43, 45.57, -52.23)
CIE-LCHlch(23.43, 69.31, 311.11°)
OKLaboklab(36.08% 0.0759 -0.1496)
OKLCHoklch(36.08% 0.168 296.9)
XYZxyz(7.6144, 3.9285, 23.6449)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1988 #578819
analogous
#192088 #4A1988 #821988
triadic
#4A1988 #884A19 #19884A
tetradic
#4A1988 #881920 #578819 #198882
square
#4A1988 #881920 #578819 #198882
split-complementary
#4A1988 #888219 #208819
monochromatic
#120621 #2E0F54 #4A1988 #6623BC #8540DC

Accessibility & contrast

On white

11.76
#4A1988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1988
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1988#FFFFFF#000000##FFFFFF
##4A19881.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003686
Tritanopia (blue-blind)
#393851
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4a1988;
/* rgb */ color: rgb(74, 25, 136);
/* oklch */ color: oklch(36.1% 0.168 296.9);
Tailwind
colors: {
  custom: {
    50: '#835dac',
    500: '#4a1988',
    950: '#000000',
  },
}
SCSS
$custom: #4a1988;
$custom-light: #835dac;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1988",
  "rgb": {
    "r": 74,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 266.486,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36079,
    "c": 0.16778,
    "h": 296.9
  },
  "luminance": 0.03929
}

Semantic roles & 50–950 ramp

primary
#4A1988
secondary
#86BB41
accent
#EC3C9E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #4A1988

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

Preview Lab → · Contrast checker → · Palette generator →

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