#4B167F#4B167F

#4B167F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.161 H 300.9°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#4B167F
RGBrgb(75, 22, 127)
HSLhsl(270, 70%, 29%)
HSVhsv(270, 83%, 50%)
CMYKcmyk(40.9%, 82.7%, 0%, 50.2%)
CIE-LABlab(22.31, 44.64, -48.39)
CIE-LCHlch(22.31, 65.84, 312.69°)
OKLaboklab(35.07% 0.0828 -0.1383)
OKLCHoklch(35.07% 0.161 300.9)
XYZxyz(7.0184, 3.6019, 20.4000)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B167F #4A7F16
analogous
#17167F #4B167F #7F167F
triadic
#4B167F #7F4B16 #167F4B
tetradic
#4B167F #7F1716 #4A7F16 #167F7F
square
#4B167F #7F1716 #4A7F16 #167F7F
split-complementary
#4B167F #7F7F16 #167F17
monochromatic
#0F051A #2C0D4B #4B167F #6A1FB3 #8934DC

Accessibility & contrast

On white

12.21
#4B167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B167F
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B167F#FFFFFF#000000##FFFFFF
##4B167F1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#3F334B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4b167f;
/* rgb */ color: rgb(75, 22, 127);
/* oklch */ color: oklch(35.1% 0.161 300.9);
Tailwind
colors: {
  custom: {
    50: '#835ba5',
    500: '#4b167f',
    950: '#000000',
  },
}
SCSS
$custom: #4b167f;
$custom-light: #835ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#4b167f",
  "rgb": {
    "r": 75,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 270.286,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35069,
    "c": 0.16119,
    "h": 300.9
  },
  "luminance": 0.03602
}

Semantic roles & 50–950 ramp

primary
#4B167F
secondary
#78B43D
accent
#ED3B93
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B167F

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

Preview Lab → · Contrast checker → · Palette generator →

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