#4A319E#4A319E

#4A319E is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.1% C 0.167 H 287.2°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#4A319E
RGBrgb(74, 49, 158)
HSLhsl(254, 53%, 41%)
HSVhsv(254, 69%, 62%)
CMYKcmyk(53.2%, 69%, 0%, 38%)
CIE-LABlab(29.71, 39.72, -55.51)
CIE-LCHlch(29.71, 68.26, 305.58°)
OKLaboklab(41.13% 0.0492 -0.1594)
OKLCHoklch(41.13% 0.167 287.2)
XYZxyz(10.0921, 6.1206, 32.9907)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A319E #859E31
analogous
#314F9E #4A319E #80319E
triadic
#4A319E #9E4A31 #319E4A
tetradic
#4A319E #9E314F #859E31 #319E80
square
#4A319E #9E314F #859E31 #319E80
split-complementary
#4A319E #9E8031 #4F9E31
monochromatic
#1E1441 #34236F #4A319E #6446C6 #8B75D4

Accessibility & contrast

On white

9.44
#4A319E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4A319E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A319E
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A319E#FFFFFF#000000##FFFFFF
##4A319E1.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#294D63
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4a319e;
/* rgb */ color: rgb(74, 49, 158);
/* oklch */ color: oklch(41.1% 0.167 287.2);
Tailwind
colors: {
  custom: {
    50: '#856bbc',
    500: '#4a319e',
    950: '#000000',
  },
}
SCSS
$custom: #4a319e;
$custom-light: #856bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a319e",
  "rgb": {
    "r": 74,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 253.761,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4113,
    "c": 0.16685,
    "h": 287.2
  },
  "luminance": 0.06121
}

Semantic roles & 50–950 ramp

primary
#4A319E
secondary
#AABC6E
accent
#DC4CBB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4A319E

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

Preview Lab → · Contrast checker → · Palette generator →

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