#4A146B#4A146B

#4A146B is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.142 H 308.6°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#4A146B
RGBrgb(74, 20, 107)
HSLhsl(277, 69%, 25%)
HSVhsv(277, 81%, 42%)
CMYKcmyk(30.8%, 81.3%, 0%, 58%)
CIE-LABlab(20.11, 40.36, -39.13)
CIE-LCHlch(20.11, 56.21, 315.89°)
OKLaboklab(32.96% 0.0886 -0.1111)
OKLCHoklch(32.96% 0.142 308.6)
XYZxyz(5.7275, 3.0178, 14.1878)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A146B #356B14
analogous
#1E146B #4A146B #6B1461
triadic
#4A146B #6B4A14 #146B4A
tetradic
#4A146B #6B1E14 #356B14 #14616B
square
#4A146B #6B1E14 #356B14 #14616B
split-complementary
#4A146B #616B14 #146B1E
monochromatic
#12051A #260A37 #4A146B #6E1E9F #9127D2

Accessibility & contrast

On white

13.10
#4A146B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#4A146B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A146B
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A146B#FFFFFF#000000##FFFFFF
##4A146B1.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#003169
Tritanopia (blue-blind)
#452A3F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4a146b;
/* rgb */ color: rgb(74, 20, 107);
/* oklch */ color: oklch(33.0% 0.142 308.6);
Tailwind
colors: {
  custom: {
    50: '#815896',
    500: '#4a146b',
    950: '#000000',
  },
}
SCSS
$custom: #4a146b;
$custom-light: #815896;
$custom-dark: #000000;
JSON
{
  "hex": "#4a146b",
  "rgb": {
    "r": 74,
    "g": 20,
    "b": 107
  },
  "hsl": {
    "h": 277.241,
    "s": 68.504,
    "l": 24.902
  },
  "oklch": {
    "l": 0.32956,
    "c": 0.14213,
    "h": 308.6
  },
  "luminance": 0.03018
}

Semantic roles & 50–950 ramp

primary
#4A146B
secondary
#61A239
accent
#EB3C7F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4A146B

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

Preview Lab → · Contrast checker → · Palette generator →

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