#4B167C#4B167C

#4B167C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.158 H 302.0°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#4B167C
RGBrgb(75, 22, 124)
HSLhsl(271, 70%, 29%)
HSVhsv(271, 82%, 49%)
CMYKcmyk(39.5%, 82.3%, 0%, 51.4%)
CIE-LABlab(22.03, 43.89, -46.94)
CIE-LCHlch(22.03, 64.26, 313.08°)
OKLaboklab(34.79% 0.0837 -0.134)
OKLCHoklch(34.79% 0.158 302)
XYZxyz(6.8258, 3.5249, 19.3856)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B167C #477C16
analogous
#18167C #4B167C #7C167A
triadic
#4B167C #7C4B16 #167C4B
tetradic
#4B167C #7C1816 #477C16 #167A7C
square
#4B167C #7C1816 #477C16 #167A7C
split-complementary
#4B167C #7A7C16 #167C18
monochromatic
#10051A #2C0D48 #4B167C #6A1FB0 #8A32DB

Accessibility & contrast

On white

12.32
#4B167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B167C
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B167C#FFFFFF#000000##FFFFFF
##4B167C1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#403249
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4b167c;
/* rgb */ color: rgb(75, 22, 124);
/* oklch */ color: oklch(34.8% 0.158 302.0);
Tailwind
colors: {
  custom: {
    50: '#835ba3',
    500: '#4b167c',
    950: '#000000',
  },
}
SCSS
$custom: #4b167c;
$custom-light: #835ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#4b167c",
  "rgb": {
    "r": 75,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 271.176,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34793,
    "c": 0.15803,
    "h": 302
  },
  "luminance": 0.03525
}

Semantic roles & 50–950 ramp

primary
#4B167C
secondary
#75B13D
accent
#ED3B90
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B167C

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

Preview Lab → · Contrast checker → · Palette generator →

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