#4B167E#4B167E

#4B167E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.160 H 301.2°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#4B167E
RGBrgb(75, 22, 126)
HSLhsl(271, 70%, 29%)
HSVhsv(271, 83%, 49%)
CMYKcmyk(40.5%, 82.5%, 0%, 50.6%)
CIE-LABlab(22.22, 44.39, -47.91)
CIE-LCHlch(22.22, 65.31, 312.82°)
OKLaboklab(34.98% 0.0831 -0.1369)
OKLCHoklch(34.98% 0.16 301.2)
XYZxyz(6.9535, 3.5760, 20.0585)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B167E #497E16
analogous
#17167E #4B167E #7E167D
triadic
#4B167E #7E4B16 #167E4B
tetradic
#4B167E #7E1716 #497E16 #167D7E
square
#4B167E #7E1716 #497E16 #167D7E
split-complementary
#4B167E #7D7E16 #167E17
monochromatic
#10051A #2C0D4A #4B167E #6A1FB2 #8933DB

Accessibility & contrast

On white

12.24
#4B167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4B167E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B167E
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B167E#FFFFFF#000000##FFFFFF
##4B167E1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#3F334A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4b167e;
/* rgb */ color: rgb(75, 22, 126);
/* oklch */ color: oklch(35.0% 0.160 301.2);
Tailwind
colors: {
  custom: {
    50: '#835ba4',
    500: '#4b167e',
    950: '#000000',
  },
}
SCSS
$custom: #4b167e;
$custom-light: #835ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#4b167e",
  "rgb": {
    "r": 75,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 270.577,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34976,
    "c": 0.16013,
    "h": 301.2
  },
  "luminance": 0.03576
}

Semantic roles & 50–950 ramp

primary
#4B167E
secondary
#77B33D
accent
#ED3B92
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B167E

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

Preview Lab → · Contrast checker → · Palette generator →

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