#4A3299#4A3299

#4A3299 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.8% C 0.159 H 287.9°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#4A3299
RGBrgb(74, 50, 153)
HSLhsl(254, 51%, 40%)
HSVhsv(254, 67%, 60%)
CMYKcmyk(51.6%, 67.3%, 0%, 40%)
CIE-LABlab(29.50, 37.62, -52.81)
CIE-LCHlch(29.50, 64.84, 305.47°)
OKLaboklab(40.85% 0.049 -0.1515)
OKLCHoklch(40.85% 0.159 287.9)
XYZxyz(9.7127, 6.0365, 30.7842)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A3299 #819932
analogous
#324D99 #4A3299 #7E3299
triadic
#4A3299 #994A32 #32994A
tetradic
#4A3299 #99324D #819932 #32997E
square
#4A3299 #99324D #819932 #32997E
split-complementary
#4A3299 #997E32 #4D9932
monochromatic
#1D143D #34236B #4A3299 #6346C2 #8A74D2

Accessibility & contrast

On white

9.51
#4A3299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4A3299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A3299
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A3299#FFFFFF#000000##FFFFFF
##4A32991.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489C
Deuteranopia (green-blind)
#004397
Tritanopia (blue-blind)
#2D4C61
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4a3299;
/* rgb */ color: rgb(74, 50, 153);
/* oklch */ color: oklch(40.8% 0.159 287.9);
Tailwind
colors: {
  custom: {
    50: '#846bb8',
    500: '#4a3299',
    950: '#000000',
  },
}
SCSS
$custom: #4a3299;
$custom-light: #846bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#4a3299",
  "rgb": {
    "r": 74,
    "g": 50,
    "b": 153
  },
  "hsl": {
    "h": 253.981,
    "s": 50.739,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40848,
    "c": 0.1592,
    "h": 287.9
  },
  "luminance": 0.06037
}

Semantic roles & 50–950 ramp

primary
#4A3299
secondary
#A8BA6D
accent
#DA4EB9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4A3299

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

Preview Lab → · Contrast checker → · Palette generator →

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