#4A339B#4A339B

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

Color values

HEX#4A339B
RGBrgb(74, 51, 155)
HSLhsl(253, 50%, 40%)
HSVhsv(253, 67%, 61%)
CMYKcmyk(52.3%, 67.1%, 0%, 39.2%)
CIE-LABlab(29.89, 37.65, -53.41)
CIE-LCHlch(29.89, 65.34, 305.18°)
OKLaboklab(41.17% 0.0477 -0.1532)
OKLCHoklch(41.17% 0.161 287.3)
XYZxyz(9.9225, 6.1896, 31.6759)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A339B #849B33
analogous
#33509B #4A339B #7E339B
triadic
#4A339B #9B4A33 #339B4A
tetradic
#4A339B #9B3350 #849B33 #339B7E
square
#4A339B #9B3350 #849B33 #339B7E
split-complementary
#4A339B #9B7E33 #509B33
monochromatic
#1E153F #34246D #4A339B #6348C3 #8B76D2

Accessibility & contrast

On white

9.38
#4A339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4A339B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A339B
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A339B#FFFFFF#000000##FFFFFF
##4A339B1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#004499
Tritanopia (blue-blind)
#2C4D62
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4a339b;
/* rgb */ color: rgb(74, 51, 155);
/* oklch */ color: oklch(41.2% 0.161 287.3);
Tailwind
colors: {
  custom: {
    50: '#846cb9',
    500: '#4a339b',
    950: '#000000',
  },
}
SCSS
$custom: #4a339b;
$custom-light: #846cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a339b",
  "rgb": {
    "r": 74,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 253.269,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41174,
    "c": 0.1605,
    "h": 287.3
  },
  "luminance": 0.0619
}

Semantic roles & 50–950 ramp

primary
#4A339B
secondary
#AABA6F
accent
#DA4EBB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4A339B

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

Preview Lab → · Contrast checker → · Palette generator →

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