#4A319A#4A319A

#4A319A is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.8% C 0.162 H 287.9°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#4A319A
RGBrgb(74, 49, 154)
HSLhsl(254, 52%, 40%)
HSVhsv(254, 68%, 60%)
CMYKcmyk(51.9%, 68.2%, 0%, 39.6%)
CIE-LABlab(29.37, 38.51, -53.63)
CIE-LCHlch(29.37, 66.02, 305.68°)
OKLaboklab(40.78% 0.0499 -0.1539)
OKLCHoklch(40.78% 0.162 287.9)
XYZxyz(9.7534, 5.9851, 31.2069)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A319A #819A31
analogous
#314C9A #4A319A #7F319A
triadic
#4A319A #9A4A31 #319A4A
tetradic
#4A319A #9A314C #819A31 #319A7F
square
#4A319A #9A314C #819A31 #319A7F
split-complementary
#4A319A #9A7F31 #4C9A31
monochromatic
#1D133D #34226C #4A319A #6345C4 #8A73D2

Accessibility & contrast

On white

9.56
#4A319A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4A319A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A319A
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A319A#FFFFFF#000000##FFFFFF
##4A319A1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489D
Deuteranopia (green-blind)
#004298
Tritanopia (blue-blind)
#2D4B61
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4a319a;
/* rgb */ color: rgb(74, 49, 154);
/* oklch */ color: oklch(40.8% 0.162 287.9);
Tailwind
colors: {
  custom: {
    50: '#846bb9',
    500: '#4a319a',
    950: '#000000',
  },
}
SCSS
$custom: #4a319a;
$custom-light: #846bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a319a",
  "rgb": {
    "r": 74,
    "g": 49,
    "b": 154
  },
  "hsl": {
    "h": 254.286,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4078,
    "c": 0.16177,
    "h": 287.9
  },
  "luminance": 0.05986
}

Semantic roles & 50–950 ramp

primary
#4A319A
secondary
#A8BA6C
accent
#DB4DB9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4A319A

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

Preview Lab → · Contrast checker → · Palette generator →

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