#4B337D#4B337D

#4B337D is a dark, vivid violet. Relative luminance 0.053; OKLCH L 38.9% C 0.120 H 295.2°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#4B337D
RGBrgb(75, 51, 125)
HSLhsl(259, 42%, 35%)
HSVhsv(259, 59%, 49%)
CMYKcmyk(40%, 59.2%, 0%, 51%)
CIE-LABlab(27.69, 28.82, -38.39)
CIE-LCHlch(27.69, 48.01, 306.89°)
OKLaboklab(38.88% 0.0512 -0.1091)
OKLCHoklch(38.88% 0.121 295.2)
XYZxyz(7.7862, 5.3440, 20.0193)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B337D #657D33
analogous
#33407D #4B337D #70337D
triadic
#4B337D #7D4B33 #337D4B
tetradic
#4B337D #7D3340 #657D33 #337D70
square
#4B337D #7D3340 #657D33 #337D70
split-complementary
#4B337D #7D7033 #407D33
monochromatic
#171026 #312152 #4B337D #6545A8 #8669C2

Accessibility & contrast

On white

10.15
#4B337D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4B337D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B337D
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B337D#FFFFFF#000000##FFFFFF
##4B337D1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C427F
Deuteranopia (green-blind)
#15407B
Tritanopia (blue-blind)
#3F4353
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4b337d;
/* rgb */ color: rgb(75, 51, 125);
/* oklch */ color: oklch(38.9% 0.120 295.2);
Tailwind
colors: {
  custom: {
    50: '#816ba3',
    500: '#4b337d',
    950: '#000000',
  },
}
SCSS
$custom: #4b337d;
$custom-light: #816ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#4b337d",
  "rgb": {
    "r": 75,
    "g": 51,
    "b": 125
  },
  "hsl": {
    "h": 259.459,
    "s": 42.045,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38877,
    "c": 0.1205,
    "h": 295.2
  },
  "luminance": 0.05344
}

Semantic roles & 50–950 ramp

primary
#4B337D
secondary
#92AA62
accent
#D256AA
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4B337D

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

Preview Lab → · Contrast checker → · Palette generator →

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