#4A397A#4A397A

#4A397A is a dark, moderate violet. Relative luminance 0.058; OKLCH L 39.7% C 0.106 H 293.0°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#4A397A
RGBrgb(74, 57, 122)
HSLhsl(256, 36%, 35%)
HSVhsv(256, 53%, 48%)
CMYKcmyk(39.3%, 53.3%, 0%, 52.2%)
CIE-LABlab(28.87, 23.87, -34.63)
CIE-LCHlch(28.87, 42.06, 304.58°)
OKLaboklab(39.66% 0.0415 -0.098)
OKLCHoklch(39.66% 0.106 293)
XYZxyz(7.7991, 5.7871, 19.1147)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A397A #697A39
analogous
#39497A #4A397A #6A397A
triadic
#4A397A #7A4A39 #397A4A
tetradic
#4A397A #7A3949 #697A39 #397A6A
square
#4A397A #7A3949 #697A39 #397A6A
split-complementary
#4A397A #7A6A39 #497A39
monochromatic
#171227 #312650 #4A397A #634CA4 #8571BD

Accessibility & contrast

On white

9.73
#4A397A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4A397A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A397A
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A397A#FFFFFF#000000##FFFFFF
##4A397A1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F457C
Deuteranopia (green-blind)
#224379
Tritanopia (blue-blind)
#3E4654
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4a397a;
/* rgb */ color: rgb(74, 57, 122);
/* oklch */ color: oklch(39.7% 0.106 293.0);
Tailwind
colors: {
  custom: {
    50: '#7f70a1',
    500: '#4a397a',
    950: '#000000',
  },
}
SCSS
$custom: #4a397a;
$custom-light: #7f70a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a397a",
  "rgb": {
    "r": 74,
    "g": 57,
    "b": 122
  },
  "hsl": {
    "h": 255.692,
    "s": 36.313,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39658,
    "c": 0.10646,
    "h": 293
  },
  "luminance": 0.05787
}

Semantic roles & 50–950 ramp

primary
#4A397A
secondary
#96A669
accent
#CC5BAF
background
#F7F6F9
surface
#EEECF2
border
#C9C7CC
text
#0A070F
muted
#7C7A7E

Preview Lab

Preview with #4A397A

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

Preview Lab → · Contrast checker → · Palette generator →

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