#4B339A#4B339A

#4B339A is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.2% C 0.159 H 288.0°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#4B339A
RGBrgb(75, 51, 154)
HSLhsl(254, 50%, 40%)
HSVhsv(254, 67%, 60%)
CMYKcmyk(51.3%, 66.9%, 0%, 39.6%)
CIE-LABlab(29.90, 37.53, -52.77)
CIE-LCHlch(29.90, 64.75, 305.42°)
OKLaboklab(41.18% 0.0493 -0.1513)
OKLCHoklch(41.18% 0.159 288)
XYZxyz(9.9165, 6.1961, 31.2390)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B339A #829A33
analogous
#334E9A #4B339A #7F339A
triadic
#4B339A #9A4B33 #339A4B
tetradic
#4B339A #9A334E #829A33 #339A7F
square
#4B339A #9A334E #829A33 #339A7F
split-complementary
#4B339A #9A7F33 #4E9A33
monochromatic
#1E153E #35246C #4B339A #6448C2 #8B76D2

Accessibility & contrast

On white

9.38
#4B339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4B339A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B339A
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B339A#FFFFFF#000000##FFFFFF
##4B339A1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499D
Deuteranopia (green-blind)
#004498
Tritanopia (blue-blind)
#2F4C62
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4b339a;
/* rgb */ color: rgb(75, 51, 154);
/* oklch */ color: oklch(41.2% 0.159 288.0);
Tailwind
colors: {
  custom: {
    50: '#856cb9',
    500: '#4b339a',
    950: '#000000',
  },
}
SCSS
$custom: #4b339a;
$custom-light: #856cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#4b339a",
  "rgb": {
    "r": 75,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 253.981,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41184,
    "c": 0.15915,
    "h": 288
  },
  "luminance": 0.06197
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4B339A

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

Preview Lab → · Contrast checker → · Palette generator →

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