#4B167D#4B167D

#4B167D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.159 H 301.6°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#4B167D
RGBrgb(75, 22, 125)
HSLhsl(271, 70%, 29%)
HSVhsv(271, 82%, 49%)
CMYKcmyk(40%, 82.4%, 0%, 51%)
CIE-LABlab(22.13, 44.14, -47.42)
CIE-LCHlch(22.13, 64.79, 312.95°)
OKLaboklab(34.88% 0.0834 -0.1355)
OKLCHoklch(34.88% 0.159 301.6)
XYZxyz(6.8893, 3.5503, 19.7204)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B167D #487D16
analogous
#18167D #4B167D #7D167C
triadic
#4B167D #7D4B16 #167D4B
tetradic
#4B167D #7D1816 #487D16 #167C7D
square
#4B167D #7D1816 #487D16 #167C7D
split-complementary
#4B167D #7C7D16 #167D18
monochromatic
#10051A #2C0D49 #4B167D #6A1FB1 #8932DB

Accessibility & contrast

On white

12.28
#4B167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4B167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B167D
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B167D#FFFFFF#000000##FFFFFF
##4B167D1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#40324A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4b167d;
/* rgb */ color: rgb(75, 22, 125);
/* oklch */ color: oklch(34.9% 0.159 301.6);
Tailwind
colors: {
  custom: {
    50: '#835ba4',
    500: '#4b167d',
    950: '#000000',
  },
}
SCSS
$custom: #4b167d;
$custom-light: #835ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#4b167d",
  "rgb": {
    "r": 75,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 270.874,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34884,
    "c": 0.15908,
    "h": 301.6
  },
  "luminance": 0.0355
}

Semantic roles & 50–950 ramp

primary
#4B167D
secondary
#76B23D
accent
#ED3B91
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B167D

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

Preview Lab → · Contrast checker → · Palette generator →

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