#4B3198#4B3198

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

Color values

HEX#4B3198
RGBrgb(75, 49, 152)
HSLhsl(255, 51%, 39%)
HSVhsv(255, 68%, 60%)
CMYKcmyk(50.7%, 67.8%, 0%, 40.4%)
CIE-LABlab(29.31, 38.09, -52.51)
CIE-LCHlch(29.31, 64.87, 305.95°)
OKLaboklab(40.71% 0.0516 -0.1506)
OKLCHoklch(40.71% 0.159 288.9)
XYZxyz(9.6658, 5.9591, 30.3406)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B3198 #7E9831
analogous
#314A98 #4B3198 #7F3198
triadic
#4B3198 #984B31 #31984B
tetradic
#4B3198 #98314A #7E9831 #31987F
square
#4B3198 #98314A #7E9831 #31987F
split-complementary
#4B3198 #987F31 #4A9831
monochromatic
#1D133B #34226A #4B3198 #6444C3 #8A72D2

Accessibility & contrast

On white

9.58
#4B3198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4B3198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B3198
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B3198#FFFFFF#000000##FFFFFF
##4B31981.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#304B60
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4b3198;
/* rgb */ color: rgb(75, 49, 152);
/* oklch */ color: oklch(40.7% 0.159 288.9);
Tailwind
colors: {
  custom: {
    50: '#856bb7',
    500: '#4b3198',
    950: '#000000',
  },
}
SCSS
$custom: #4b3198;
$custom-light: #856bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#4b3198",
  "rgb": {
    "r": 75,
    "g": 49,
    "b": 152
  },
  "hsl": {
    "h": 255.146,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40705,
    "c": 0.15917,
    "h": 288.9
  },
  "luminance": 0.05959
}

Semantic roles & 50–950 ramp

primary
#4B3198
secondary
#A6B96B
accent
#DB4DB7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4B3198

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

Preview Lab → · Contrast checker → · Palette generator →

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