#4A167C#4A167C

#4A167C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.158 H 301.4°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#4A167C
RGBrgb(74, 22, 124)
HSLhsl(271, 70%, 29%)
HSVhsv(271, 82%, 49%)
CMYKcmyk(40.3%, 82.3%, 0%, 51.4%)
CIE-LABlab(21.89, 43.72, -47.18)
CIE-LCHlch(21.89, 64.32, 312.82°)
OKLaboklab(34.66% 0.0821 -0.1348)
OKLCHoklch(34.66% 0.158 301.4)
XYZxyz(6.7481, 3.4849, 19.3820)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A167C #487C16
analogous
#17167C #4A167C #7C167B
triadic
#4A167C #7C4A16 #167C4A
tetradic
#4A167C #7C1716 #487C16 #167B7C
square
#4A167C #7C1716 #487C16 #167B7C
split-complementary
#4A167C #7B7C16 #167C17
monochromatic
#10051A #2B0D48 #4A167C #691FB0 #8832DB

Accessibility & contrast

On white

12.37
#4A167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4A167C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A167C
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A167C#FFFFFF#000000##FFFFFF
##4A167C1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#3F3249
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4a167c;
/* rgb */ color: rgb(74, 22, 124);
/* oklch */ color: oklch(34.7% 0.158 301.4);
Tailwind
colors: {
  custom: {
    50: '#825aa3',
    500: '#4a167c',
    950: '#000000',
  },
}
SCSS
$custom: #4a167c;
$custom-light: #825aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a167c",
  "rgb": {
    "r": 74,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 270.588,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34661,
    "c": 0.15785,
    "h": 301.4
  },
  "luminance": 0.03485
}

Semantic roles & 50–950 ramp

primary
#4A167C
secondary
#76B13D
accent
#ED3B92
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A167C

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

Preview Lab → · Contrast checker → · Palette generator →

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