#4A289D#4A289D

#4A289D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.176 H 289.1°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#4A289D
RGBrgb(74, 40, 157)
HSLhsl(257, 59%, 39%)
HSVhsv(257, 75%, 62%)
CMYKcmyk(52.9%, 74.5%, 0%, 38.4%)
CIE-LABlab(27.86, 44.32, -57.93)
CIE-LCHlch(27.86, 72.94, 307.42°)
OKLaboklab(39.79% 0.0576 -0.1665)
OKLCHoklch(39.79% 0.176 289.1)
XYZxyz(9.6669, 5.4073, 32.4261)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A289D #7B9D28
analogous
#28409D #4A289D #84289D
triadic
#4A289D #9D4A28 #289D4A
tetradic
#4A289D #9D2840 #7B9D28 #289D84
square
#4A289D #9D2840 #7B9D28 #289D84
split-complementary
#4A289D #9D8428 #409D28
monochromatic
#1C0F3B #331C6C #4A289D #6236CC #8867D8

Accessibility & contrast

On white

10.09
#4A289D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4A289D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A289D
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A289D#FFFFFF#000000##FFFFFF
##4A289D1.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#003F9B
Tritanopia (blue-blind)
#2B4860
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4a289d;
/* rgb */ color: rgb(74, 40, 157);
/* oklch */ color: oklch(39.8% 0.176 289.1);
Tailwind
colors: {
  custom: {
    50: '#8565bb',
    500: '#4a289d',
    950: '#000000',
  },
}
SCSS
$custom: #4a289d;
$custom-light: #8565bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4a289d",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 157
  },
  "hsl": {
    "h": 257.436,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.39786,
    "c": 0.17614,
    "h": 289.1
  },
  "luminance": 0.05408
}

Semantic roles & 50–950 ramp

primary
#4A289D
secondary
#A4BE62
accent
#E345B5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A289D

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

Preview Lab → · Contrast checker → · Palette generator →

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