#4A319F#4A319F

#4A319F is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.2% C 0.168 H 287.0°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#4A319F
RGBrgb(74, 49, 159)
HSLhsl(254, 53%, 41%)
HSVhsv(254, 69%, 62%)
CMYKcmyk(53.5%, 69.2%, 0%, 37.6%)
CIE-LABlab(29.80, 40.02, -55.98)
CIE-LCHlch(29.80, 68.81, 305.56°)
OKLaboklab(41.22% 0.0491 -0.1608)
OKLCHoklch(41.22% 0.168 287)
XYZxyz(10.1785, 6.1552, 33.4459)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A319F #869F31
analogous
#314F9F #4A319F #81319F
triadic
#4A319F #9F4A31 #319F4A
tetradic
#4A319F #9F314F #869F31 #319F81
square
#4A319F #9F314F #869F31 #319F81
split-complementary
#4A319F #9F8131 #4F9F31
monochromatic
#1E1441 #342370 #4A319F #6447C6 #8B76D5

Accessibility & contrast

On white

9.41
#4A319F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4A319F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A319F
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A319F#FFFFFF#000000##FFFFFF
##4A319F1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#284D64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4a319f;
/* rgb */ color: rgb(74, 49, 159);
/* oklch */ color: oklch(41.2% 0.168 287.0);
Tailwind
colors: {
  custom: {
    50: '#856bbc',
    500: '#4a319f',
    950: '#000000',
  },
}
SCSS
$custom: #4a319f;
$custom-light: #856bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a319f",
  "rgb": {
    "r": 74,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 253.636,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41218,
    "c": 0.16811,
    "h": 287
  },
  "luminance": 0.06156
}

Semantic roles & 50–950 ramp

primary
#4A319F
secondary
#ABBD6F
accent
#DC4CBB
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4A319F

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

Preview Lab → · Contrast checker → · Palette generator →

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