#4A336B#4A336B

#4A336B is a dark, moderate violet. Relative luminance 0.049; OKLCH L 37.5% C 0.095 H 300.9°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#4A336B
RGBrgb(74, 51, 107)
HSLhsl(265, 35%, 31%)
HSVhsv(265, 52%, 42%)
CMYKcmyk(30.8%, 52.3%, 0%, 58%)
CIE-LABlab(26.40, 23.37, -29.02)
CIE-LCHlch(26.40, 37.26, 308.84°)
OKLaboklab(37.52% 0.0488 -0.0816)
OKLCHoklch(37.52% 0.095 300.9)
XYZxyz(6.6611, 4.8850, 14.4990)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A336B #546B33
analogous
#33386B #4A336B #66336B
triadic
#4A336B #6B4A33 #336B4A
tetradic
#4A336B #6B3338 #546B33 #336B66
square
#4A336B #6B3338 #546B33 #336B66
split-complementary
#4A336B #6B6633 #386B33
monochromatic
#110B18 #2D1F42 #4A336B #674794 #8564B5

Accessibility & contrast

On white

10.62
#4A336B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4A336B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A336B
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A336B#FFFFFF#000000##FFFFFF
##4A336B1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213E6D
Deuteranopia (green-blind)
#273E6A
Tritanopia (blue-blind)
#443D4A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4a336b;
/* rgb */ color: rgb(74, 51, 107);
/* oklch */ color: oklch(37.5% 0.095 300.9);
Tailwind
colors: {
  custom: {
    50: '#7e6b96',
    500: '#4a336b',
    950: '#000000',
  },
}
SCSS
$custom: #4a336b;
$custom-light: #7e6b96;
$custom-dark: #000000;
JSON
{
  "hex": "#4a336b",
  "rgb": {
    "r": 74,
    "g": 51,
    "b": 107
  },
  "hsl": {
    "h": 264.643,
    "s": 35.443,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37518,
    "c": 0.0951,
    "h": 300.9
  },
  "luminance": 0.04885
}

Semantic roles & 50–950 ramp

primary
#4A336B
secondary
#829C5E
accent
#CB5C9E
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#0A060D
muted
#7C7A7E

Preview Lab

Preview with #4A336B

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

Preview Lab → · Contrast checker → · Palette generator →

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