#4A287D#4A287D

#4A287D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.0% C 0.137 H 297.7°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#4A287D
RGBrgb(74, 40, 125)
HSLhsl(264, 52%, 32%)
HSVhsv(264, 68%, 49%)
CMYKcmyk(40.8%, 68%, 0%, 51%)
CIE-LABlab(25.12, 35.14, -42.56)
CIE-LCHlch(25.12, 55.19, 309.55°)
OKLaboklab(36.98% 0.0636 -0.1213)
OKLCHoklch(36.98% 0.137 297.7)
XYZxyz(7.2836, 4.4540, 19.8740)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A287D #5B7D28
analogous
#28317D #4A287D #75287D
triadic
#4A287D #7D4A28 #287D4A
tetradic
#4A287D #7D2831 #5B7D28 #287D75
square
#4A287D #7D2831 #5B7D28 #287D75
split-complementary
#4A287D #7D7528 #317D28
monochromatic
#130A20 #2F194F #4A287D #6537AB #8456C9

Accessibility & contrast

On white

11.11
#4A287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4A287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A287D
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A287D#FFFFFF#000000##FFFFFF
##4A287D1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#3E3C4F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4a287d;
/* rgb */ color: rgb(74, 40, 125);
/* oklch */ color: oklch(37.0% 0.137 297.7);
Tailwind
colors: {
  custom: {
    50: '#8164a3',
    500: '#4a287d',
    950: '#000000',
  },
}
SCSS
$custom: #4a287d;
$custom-light: #8164a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a287d",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 264,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36976,
    "c": 0.13699,
    "h": 297.7
  },
  "luminance": 0.04454
}

Semantic roles & 50–950 ramp

primary
#4A287D
secondary
#8AAE53
accent
#DB4DA2
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4A287D

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

Preview Lab → · Contrast checker → · Palette generator →

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