#4B339B#4B339B

#4B339B is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.3% C 0.160 H 287.8°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#4B339B
RGBrgb(75, 51, 155)
HSLhsl(254, 50%, 40%)
HSVhsv(254, 67%, 61%)
CMYKcmyk(51.6%, 67.1%, 0%, 39.2%)
CIE-LABlab(29.98, 37.83, -53.24)
CIE-LCHlch(29.98, 65.32, 305.40°)
OKLaboklab(41.27% 0.0491 -0.1527)
OKLCHoklch(41.27% 0.16 287.8)
XYZxyz(10.0001, 6.2296, 31.6795)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B339B #839B33
analogous
#334F9B #4B339B #7F339B
triadic
#4B339B #9B4B33 #339B4B
tetradic
#4B339B #9B334F #839B33 #339B7F
square
#4B339B #9B334F #839B33 #339B7F
split-complementary
#4B339B #9B7F33 #4F9B33
monochromatic
#1E153F #35246D #4B339B #6548C3 #8C76D2

Accessibility & contrast

On white

9.35
#4B339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4B339B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B339B
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B339B#FFFFFF#000000##FFFFFF
##4B339B1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#004499
Tritanopia (blue-blind)
#2E4D62
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4b339b;
/* rgb */ color: rgb(75, 51, 155);
/* oklch */ color: oklch(41.3% 0.160 287.8);
Tailwind
colors: {
  custom: {
    50: '#856cb9',
    500: '#4b339b',
    950: '#000000',
  },
}
SCSS
$custom: #4b339b;
$custom-light: #856cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#4b339b",
  "rgb": {
    "r": 75,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 253.846,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41269,
    "c": 0.16043,
    "h": 287.8
  },
  "luminance": 0.0623
}

Semantic roles & 50–950 ramp

primary
#4B339B
secondary
#A9BA6F
accent
#DA4EBA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4B339B

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

Preview Lab → · Contrast checker → · Palette generator →

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