#4B337B#4B337B

#4B337B is a dark, moderate violet. Relative luminance 0.053; OKLCH L 38.7% C 0.118 H 295.8°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#4B337B
RGBrgb(75, 51, 123)
HSLhsl(260, 41%, 34%)
HSVhsv(260, 59%, 48%)
CMYKcmyk(39%, 58.5%, 0%, 51.8%)
CIE-LABlab(27.55, 28.23, -37.36)
CIE-LCHlch(27.55, 46.83, 307.08°)
OKLaboklab(38.73% 0.0512 -0.106)
OKLCHoklch(38.73% 0.118 295.8)
XYZxyz(7.6597, 5.2934, 19.3532)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B337B #637B33
analogous
#333F7B #4B337B #6F337B
triadic
#4B337B #7B4B33 #337B4B
tetradic
#4B337B #7B333F #637B33 #337B6F
square
#4B337B #7B333F #637B33 #337B6F
split-complementary
#4B337B #7B6F33 #3F7B33
monochromatic
#160F24 #312150 #4B337B #6545A6 #8568C0

Accessibility & contrast

On white

10.20
#4B337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4B337B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B337B
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B337B#FFFFFF#000000##FFFFFF
##4B337B1.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10427D
Deuteranopia (green-blind)
#184079
Tritanopia (blue-blind)
#3F4252
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4b337b;
/* rgb */ color: rgb(75, 51, 123);
/* oklch */ color: oklch(38.7% 0.118 295.8);
Tailwind
colors: {
  custom: {
    50: '#816ba2',
    500: '#4b337b',
    950: '#000000',
  },
}
SCSS
$custom: #4b337b;
$custom-light: #816ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#4b337b",
  "rgb": {
    "r": 75,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 260,
    "s": 41.379,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38731,
    "c": 0.11774,
    "h": 295.8
  },
  "luminance": 0.05294
}

Semantic roles & 50–950 ramp

primary
#4B337B
secondary
#91A862
accent
#D157A8
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0A070F
muted
#7C7A7F

Preview Lab

Preview with #4B337B

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

Preview Lab → · Contrast checker → · Palette generator →

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