#4A168B#4A168B

#4A168B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.174 H 296.3°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#4A168B
RGBrgb(74, 22, 139)
HSLhsl(267, 73%, 32%)
HSVhsv(267, 84%, 55%)
CMYKcmyk(46.8%, 84.2%, 0%, 45.5%)
CIE-LABlab(23.32, 47.53, -54.29)
CIE-LCHlch(23.32, 72.16, 311.20°)
OKLaboklab(36.09% 0.0771 -0.1557)
OKLCHoklch(36.09% 0.174 296.3)
XYZxyz(7.7699, 3.8936, 24.7632)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A168B #578B16
analogous
#161C8B #4A168B #85168B
triadic
#4A168B #8B4A16 #168B4A
tetradic
#4A168B #8B161C #578B16 #168B85
square
#4A168B #8B161C #578B16 #168B85
split-complementary
#4A168B #8B8516 #1C8B16
monochromatic
#120521 #2E0E56 #4A168B #661EC0 #853BE0

Accessibility & contrast

On white

11.81
#4A168B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4A168B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A168B
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A168B#FFFFFF#000000##FFFFFF
##4A168B1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#383852
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4a168b;
/* rgb */ color: rgb(74, 22, 139);
/* oklch */ color: oklch(36.1% 0.174 296.3);
Tailwind
colors: {
  custom: {
    50: '#845bae',
    500: '#4a168b',
    950: '#000000',
  },
}
SCSS
$custom: #4a168b;
$custom-light: #845bae;
$custom-dark: #000000;
JSON
{
  "hex": "#4a168b",
  "rgb": {
    "r": 74,
    "g": 22,
    "b": 139
  },
  "hsl": {
    "h": 266.667,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36086,
    "c": 0.1737,
    "h": 296.3
  },
  "luminance": 0.03894
}

Semantic roles & 50–950 ramp

primary
#4A168B
secondary
#86BF3E
accent
#EF389E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4A168B

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

Preview Lab → · Contrast checker → · Palette generator →

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