#4B168F#4B168F

#4B168F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.178 H 295.7°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#4B168F
RGBrgb(75, 22, 143)
HSLhsl(266, 73%, 32%)
HSVhsv(266, 85%, 56%)
CMYKcmyk(47.6%, 84.6%, 0%, 43.9%)
CIE-LABlab(23.84, 48.70, -55.91)
CIE-LCHlch(23.84, 74.14, 311.05°)
OKLaboklab(36.6% 0.0772 -0.1604)
OKLCHoklch(36.6% 0.178 295.7)
XYZxyz(8.1451, 4.0526, 26.3344)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B168F #5A8F16
analogous
#161E8F #4B168F #88168F
triadic
#4B168F #8F4B16 #168F4B
tetradic
#4B168F #8F161E #5A8F16 #168F88
square
#4B168F #8F161E #5A8F16 #168F88
split-complementary
#4B168F #8F8816 #1E8F16
monochromatic
#130625 #2F0E5A #4B168F #671EC4 #863EE1

Accessibility & contrast

On white

11.60
#4B168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4B168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B168F
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B168F#FFFFFF#000000##FFFFFF
##4B168F1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#373A54
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4b168f;
/* rgb */ color: rgb(75, 22, 143);
/* oklch */ color: oklch(36.6% 0.178 295.7);
Tailwind
colors: {
  custom: {
    50: '#855cb1',
    500: '#4b168f',
    950: '#000000',
  },
}
SCSS
$custom: #4b168f;
$custom-light: #855cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#4b168f",
  "rgb": {
    "r": 75,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 266.281,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.366,
    "c": 0.178,
    "h": 295.7
  },
  "luminance": 0.04053
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4B168F

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

Preview Lab → · Contrast checker → · Palette generator →

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