#4A398E#4A398E

#4A398E is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.1% C 0.135 H 288.2°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#4A398E
RGBrgb(74, 57, 142)
HSLhsl(252, 43%, 39%)
HSVhsv(252, 60%, 56%)
CMYKcmyk(47.9%, 59.9%, 0%, 44.3%)
CIE-LABlab(30.24, 29.99, -44.87)
CIE-LCHlch(30.24, 53.97, 303.76°)
OKLaboklab(41.12% 0.0421 -0.1281)
OKLCHoklch(41.12% 0.135 288.2)
XYZxyz(9.1683, 6.3347, 26.3256)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A398E #7D8E39
analogous
#39538E #4A398E #75398E
triadic
#4A398E #8E4A39 #398E4A
tetradic
#4A398E #8E3953 #7D8E39 #398E75
square
#4A398E #8E3953 #7D8E39 #398E75
split-complementary
#4A398E #8E7539 #538E39
monochromatic
#1C1637 #332762 #4A398E #624DB7 #8978C9

Accessibility & contrast

On white

9.26
#4A398E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4A398E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A398E
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A398E#FFFFFF#000000##FFFFFF
##4A398E1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#00458C
Tritanopia (blue-blind)
#344C5E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4a398e;
/* rgb */ color: rgb(74, 57, 142);
/* oklch */ color: oklch(41.1% 0.135 288.2);
Tailwind
colors: {
  custom: {
    50: '#8270b0',
    500: '#4a398e',
    950: '#000000',
  },
}
SCSS
$custom: #4a398e;
$custom-light: #8270b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a398e",
  "rgb": {
    "r": 74,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 252,
    "s": 42.714,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41115,
    "c": 0.13486,
    "h": 288.2
  },
  "luminance": 0.06335
}

Semantic roles & 50–950 ramp

primary
#4A398E
secondary
#A5B271
accent
#D255B9
background
#F8F6FA
surface
#EFECF5
border
#CAC7CF
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4A398E

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

Preview Lab → · Contrast checker → · Palette generator →

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