#4A289F#4A289F

#4A289F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.179 H 288.6°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#4A289F
RGBrgb(74, 40, 159)
HSLhsl(257, 60%, 39%)
HSVhsv(257, 75%, 62%)
CMYKcmyk(53.5%, 74.8%, 0%, 37.6%)
CIE-LABlab(28.05, 44.90, -58.84)
CIE-LCHlch(28.05, 74.02, 307.34°)
OKLaboklab(39.97% 0.0571 -0.1691)
OKLCHoklch(39.97% 0.179 288.6)
XYZxyz(9.8390, 5.4762, 33.3327)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A289F #7D9F28
analogous
#28429F #4A289F #86289F
triadic
#4A289F #9F4A28 #289F4A
tetradic
#4A289F #9F2842 #7D9F28 #289F86
square
#4A289F #9F2842 #7D9F28 #289F86
split-complementary
#4A289F #9F8628 #429F28
monochromatic
#1C0F3D #331C6E #4A289F #6237CD #8968D9

Accessibility & contrast

On white

10.02
#4A289F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4A289F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A289F
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A289F#FFFFFF#000000##FFFFFF
##4A289F1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#294861
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4a289f;
/* rgb */ color: rgb(74, 40, 159);
/* oklch */ color: oklch(40.0% 0.179 288.6);
Tailwind
colors: {
  custom: {
    50: '#8666bc',
    500: '#4a289f',
    950: '#000000',
  },
}
SCSS
$custom: #4a289f;
$custom-light: #8666bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a289f",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 159
  },
  "hsl": {
    "h": 257.143,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39973,
    "c": 0.17852,
    "h": 288.6
  },
  "luminance": 0.05477
}

Semantic roles & 50–950 ramp

primary
#4A289F
secondary
#A5BF64
accent
#E345B6
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A289F

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

Preview Lab → · Contrast checker → · Palette generator →

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