#4A289A#4A289A

#4A289A is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.173 H 289.7°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#4A289A
RGBrgb(74, 40, 154)
HSLhsl(258, 59%, 38%)
HSVhsv(258, 74%, 60%)
CMYKcmyk(51.9%, 74%, 0%, 39.6%)
CIE-LABlab(27.59, 43.45, -56.55)
CIE-LCHlch(27.59, 71.32, 307.54°)
OKLaboklab(39.51% 0.0583 -0.1624)
OKLCHoklch(39.51% 0.173 289.7)
XYZxyz(9.4139, 5.3061, 31.0937)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A289A #789A28
analogous
#283F9A #4A289A #83289A
triadic
#4A289A #9A4A28 #289A4A
tetradic
#4A289A #9A283F #789A28 #289A83
square
#4A289A #9A283F #789A28 #289A83
split-complementary
#4A289A #9A8328 #3F9A28
monochromatic
#1B0F39 #331B69 #4A289A #6135CA #8765D7

Accessibility & contrast

On white

10.19
#4A289A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4A289A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A289A
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A289A#FFFFFF#000000##FFFFFF
##4A289A1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439D
Deuteranopia (green-blind)
#003E98
Tritanopia (blue-blind)
#2D465F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4a289a;
/* rgb */ color: rgb(74, 40, 154);
/* oklch */ color: oklch(39.5% 0.173 289.7);
Tailwind
colors: {
  custom: {
    50: '#8565b9',
    500: '#4a289a',
    950: '#000000',
  },
}
SCSS
$custom: #4a289a;
$custom-light: #8565b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a289a",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 154
  },
  "hsl": {
    "h": 257.895,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39507,
    "c": 0.17257,
    "h": 289.7
  },
  "luminance": 0.05307
}

Semantic roles & 50–950 ramp

primary
#4A289A
secondary
#A2BD61
accent
#E246B3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A289A

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

Preview Lab → · Contrast checker → · Palette generator →

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