#4B167B#4B167B

#4B167B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.157 H 302.3°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#4B167B
RGBrgb(75, 22, 123)
HSLhsl(271, 70%, 28%)
HSVhsv(271, 82%, 48%)
CMYKcmyk(39%, 82.1%, 0%, 51.8%)
CIE-LABlab(21.94, 43.64, -46.45)
CIE-LCHlch(21.94, 63.73, 313.21°)
OKLaboklab(34.7% 0.084 -0.1326)
OKLCHoklch(34.7% 0.157 302.3)
XYZxyz(6.7629, 3.4997, 19.0543)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B167B #467B16
analogous
#18167B #4B167B #7B1678
triadic
#4B167B #7B4B16 #167B4B
tetradic
#4B167B #7B1816 #467B16 #16787B
square
#4B167B #7B1816 #467B16 #16787B
split-complementary
#4B167B #787B16 #167B18
monochromatic
#10051A #2B0D47 #4B167B #6B1FAF #8A31DA

Accessibility & contrast

On white

12.35
#4B167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4B167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B167B
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B167B#FFFFFF#000000##FFFFFF
##4B167B1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#413149
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4b167b;
/* rgb */ color: rgb(75, 22, 123);
/* oklch */ color: oklch(34.7% 0.157 302.3);
Tailwind
colors: {
  custom: {
    50: '#835aa2',
    500: '#4b167b',
    950: '#000000',
  },
}
SCSS
$custom: #4b167b;
$custom-light: #835aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#4b167b",
  "rgb": {
    "r": 75,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 271.485,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34701,
    "c": 0.15698,
    "h": 302.3
  },
  "luminance": 0.035
}

Semantic roles & 50–950 ramp

primary
#4B167B
secondary
#74B03D
accent
#EC3B90
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B167B

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

Preview Lab → · Contrast checker → · Palette generator →

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