#4B168E#4B168E

#4B168E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.5% C 0.177 H 296.0°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#4B168E
RGBrgb(75, 22, 142)
HSLhsl(267, 73%, 32%)
HSVhsv(267, 85%, 56%)
CMYKcmyk(47.2%, 84.5%, 0%, 44.3%)
CIE-LABlab(23.75, 48.44, -55.45)
CIE-LCHlch(23.75, 73.63, 311.14°)
OKLaboklab(36.5% 0.0776 -0.159)
OKLCHoklch(36.5% 0.177 296)
XYZxyz(8.0697, 4.0225, 25.9372)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B168E #598E16
analogous
#161D8E #4B168E #87168E
triadic
#4B168E #8E4B16 #168E4B
tetradic
#4B168E #8E161D #598E16 #168E87
square
#4B168E #8E161D #598E16 #168E87
split-complementary
#4B168E #8E8716 #1D8E16
monochromatic
#130624 #2F0E59 #4B168E #671EC3 #863DE1

Accessibility & contrast

On white

11.64
#4B168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4B168E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B168E
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B168E#FFFFFF#000000##FFFFFF
##4B168E1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#383A54
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4b168e;
/* rgb */ color: rgb(75, 22, 142);
/* oklch */ color: oklch(36.5% 0.177 296.0);
Tailwind
colors: {
  custom: {
    50: '#855cb0',
    500: '#4b168e',
    950: '#000000',
  },
}
SCSS
$custom: #4b168e;
$custom-light: #855cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4b168e",
  "rgb": {
    "r": 75,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 266.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36501,
    "c": 0.17695,
    "h": 296
  },
  "luminance": 0.04023
}

Semantic roles & 50–950 ramp

primary
#4B168E
secondary
#87C13F
accent
#F0389F
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4B168E

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

Preview Lab → · Contrast checker → · Palette generator →

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