#4A34A5#4A34A5

#4A34A5 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.2% C 0.172 H 285.3°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#4A34A5
RGBrgb(74, 52, 165)
HSLhsl(252, 52%, 43%)
HSVhsv(252, 68%, 65%)
CMYKcmyk(55.2%, 68.5%, 0%, 35.3%)
CIE-LABlab(30.94, 40.14, -57.74)
CIE-LCHlch(30.94, 70.32, 304.81°)
OKLaboklab(42.2% 0.0453 -0.166)
OKLCHoklch(42.2% 0.172 285.3)
XYZxyz(10.8415, 6.6278, 36.2980)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A34A5 #8FA534
analogous
#3457A5 #4A34A5 #8234A5
triadic
#4A34A5 #A54A34 #34A54A
tetradic
#4A34A5 #A53457 #8FA534 #34A582
square
#4A34A5 #A53457 #8FA534 #34A582
split-complementary
#4A34A5 #A58234 #57A534
monochromatic
#201748 #352576 #4A34A5 #664FC7 #8F7DD6

Accessibility & contrast

On white

9.03
#4A34A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#4A34A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A34A5
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A34A5#FFFFFF#000000##FFFFFF
##4A34A51.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA8
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#225168
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4a34a5;
/* rgb */ color: rgb(74, 52, 165);
/* oklch */ color: oklch(42.2% 0.172 285.3);
Tailwind
colors: {
  custom: {
    50: '#866dc1',
    500: '#4a34a5',
    950: '#000000',
  },
}
SCSS
$custom: #4a34a5;
$custom-light: #866dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a34a5",
  "rgb": {
    "r": 74,
    "g": 52,
    "b": 165
  },
  "hsl": {
    "h": 251.681,
    "s": 52.074,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42199,
    "c": 0.17203,
    "h": 285.3
  },
  "luminance": 0.06628
}

Semantic roles & 50–950 ramp

primary
#4A34A5
secondary
#B1BF76
accent
#DC4CC0
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4A34A5

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

Preview Lab → · Contrast checker → · Palette generator →

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