#4A168F#4A168F

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

Color values

HEX#4A168F
RGBrgb(74, 22, 143)
HSLhsl(266, 73%, 32%)
HSVhsv(266, 85%, 56%)
CMYKcmyk(48.3%, 84.6%, 0%, 43.9%)
CIE-LABlab(23.71, 48.56, -56.13)
CIE-LCHlch(23.71, 74.22, 310.86°)
OKLaboklab(36.48% 0.0756 -0.161)
OKLCHoklch(36.48% 0.178 295.2)
XYZxyz(8.0675, 4.0126, 26.3307)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A168F #5B8F16
analogous
#161F8F #4A168F #86168F
triadic
#4A168F #8F4A16 #168F4A
tetradic
#4A168F #8F161F #5B8F16 #168F86
square
#4A168F #8F161F #5B8F16 #168F86
split-complementary
#4A168F #8F8616 #1F8F16
monochromatic
#130625 #2F0E5A #4A168F #651EC4 #843EE1

Accessibility & contrast

On white

11.65
#4A168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A168F
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A168F#FFFFFF#000000##FFFFFF
##4A168F1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#363A54
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4a168f;
/* rgb */ color: rgb(74, 22, 143);
/* oklch */ color: oklch(36.5% 0.178 295.2);
Tailwind
colors: {
  custom: {
    50: '#855cb1',
    500: '#4a168f',
    950: '#000000',
  },
}
SCSS
$custom: #4a168f;
$custom-light: #855cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a168f",
  "rgb": {
    "r": 74,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 265.785,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3648,
    "c": 0.17792,
    "h": 295.2
  },
  "luminance": 0.04013
}

Semantic roles & 50–950 ramp

primary
#4A168F
secondary
#8AC13F
accent
#F038A1
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4A168F

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

Preview Lab → · Contrast checker → · Palette generator →

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