#4A187B#4A187B

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

Color values

HEX#4A187B
RGBrgb(74, 24, 123)
HSLhsl(270, 67%, 29%)
HSVhsv(270, 80%, 48%)
CMYKcmyk(39.8%, 80.5%, 0%, 51.8%)
CIE-LABlab(22.09, 42.64, -46.22)
CIE-LCHlch(22.09, 62.89, 312.69°)
OKLaboklab(34.77% 0.0807 -0.132)
OKLCHoklch(34.77% 0.155 301.4)
XYZxyz(6.7250, 3.5391, 19.0639)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A187B #497B18
analogous
#19187B #4A187B #7B187B
triadic
#4A187B #7B4A18 #187B4A
tetradic
#4A187B #7B1918 #497B18 #187B7B
square
#4A187B #7B1918 #497B18 #187B7B
split-complementary
#4A187B #7B7B18 #187B19
monochromatic
#0F051A #2B0E48 #4A187B #6922AE #8836D8

Accessibility & contrast

On white

12.30
#4A187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4A187B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A187B
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A187B#FFFFFF#000000##FFFFFF
##4A187B1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#3F3249
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4a187b;
/* rgb */ color: rgb(74, 24, 123);
/* oklch */ color: oklch(34.8% 0.155 301.4);
Tailwind
colors: {
  custom: {
    50: '#825ba2',
    500: '#4a187b',
    950: '#000000',
  },
}
SCSS
$custom: #4a187b;
$custom-light: #825ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a187b",
  "rgb": {
    "r": 74,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 270.303,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34769,
    "c": 0.15473,
    "h": 301.4
  },
  "luminance": 0.03539
}

Semantic roles & 50–950 ramp

primary
#4A187B
secondary
#77B03F
accent
#EA3E93
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A187B

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

Preview Lab → · Contrast checker → · Palette generator →

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