#4A28AF#4A28AF

#4A28AF is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.197 H 285.5°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#4A28AF
RGBrgb(74, 40, 175)
HSLhsl(255, 63%, 42%)
HSVhsv(255, 77%, 69%)
CMYKcmyk(57.7%, 77.1%, 0%, 31.4%)
CIE-LABlab(29.58, 49.51, -65.98)
CIE-LCHlch(29.58, 82.49, 306.89°)
OKLaboklab(41.52% 0.0528 -0.19)
OKLCHoklch(41.52% 0.197 285.5)
XYZxyz(11.3184, 6.0679, 41.1239)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A28AF #8DAF28
analogous
#284AAF #4A28AF #8E28AF
triadic
#4A28AF #AF4A28 #28AF4A
tetradic
#4A28AF #AF284A #8DAF28 #28AF8E
square
#4A28AF #AF284A #8DAF28 #28AF8E
split-complementary
#4A28AF #AF8E28 #4AAF28
monochromatic
#20114B #351D7D #4A28AF #6641D4 #8E73DF

Accessibility & contrast

On white

9.49
#4A28AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4A28AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A28AF
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A28AF#FFFFFF#000000##FFFFFF
##4A28AF1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B3
Deuteranopia (green-blind)
#0042AD
Tritanopia (blue-blind)
#154F6A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4a28af;
/* rgb */ color: rgb(74, 40, 175);
/* oklch */ color: oklch(41.5% 0.197 285.5);
Tailwind
colors: {
  custom: {
    50: '#8866c8',
    500: '#4a28af',
    950: '#000000',
  },
}
SCSS
$custom: #4a28af;
$custom-light: #8866c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4a28af",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 255.111,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41515,
    "c": 0.19723,
    "h": 285.5
  },
  "luminance": 0.06069
}

Semantic roles & 50–950 ramp

primary
#4A28AF
secondary
#B0C66D
accent
#E642BD
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4A28AF

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

Preview Lab → · Contrast checker → · Palette generator →

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