#4A338A#4A338A

#4A338A is a dark, vivid violet. Relative luminance 0.057; OKLCH L 39.8% C 0.138 H 291.0°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#4A338A
RGBrgb(74, 51, 138)
HSLhsl(256, 46%, 37%)
HSVhsv(256, 63%, 54%)
CMYKcmyk(46.4%, 63%, 0%, 45.9%)
CIE-LABlab(28.53, 32.46, -45.16)
CIE-LCHlch(28.53, 55.62, 305.71°)
OKLaboklab(39.77% 0.0494 -0.129)
OKLCHoklch(39.77% 0.138 291)
XYZxyz(8.5940, 5.6582, 24.6792)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A338A #738A33
analogous
#33488A #4A338A #76338A
triadic
#4A338A #8A4A33 #338A4A
tetradic
#4A338A #8A3348 #738A33 #338A76
square
#4A338A #8A3348 #738A33 #338A76
split-complementary
#4A338A #8A7633 #488A33
monochromatic
#1A1231 #32225D #4A338A #6244B7 #866EC9

Accessibility & contrast

On white

9.85
#4A338A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4A338A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A338A
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A338A#FFFFFF#000000##FFFFFF
##4A338A1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#004188
Tritanopia (blue-blind)
#374759
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4a338a;
/* rgb */ color: rgb(74, 51, 138);
/* oklch */ color: oklch(39.8% 0.138 291.0);
Tailwind
colors: {
  custom: {
    50: '#826cad',
    500: '#4a338a',
    950: '#000000',
  },
}
SCSS
$custom: #4a338a;
$custom-light: #826cad;
$custom-dark: #000000;
JSON
{
  "hex": "#4a338a",
  "rgb": {
    "r": 74,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 255.862,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39769,
    "c": 0.13813,
    "h": 291
  },
  "luminance": 0.05658
}

Semantic roles & 50–950 ramp

primary
#4A338A
secondary
#9EB167
accent
#D652B3
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4A338A

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

Preview Lab → · Contrast checker → · Palette generator →

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