#4A28B9#4A28B9

#4A28B9 is a dark, highly saturated violet. Relative luminance 0.065; OKLCH L 42.5% C 0.209 H 283.8°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#4A28B9
RGBrgb(74, 40, 185)
HSLhsl(254, 64%, 44%)
HSVhsv(254, 78%, 73%)
CMYKcmyk(60%, 78.4%, 0%, 27.5%)
CIE-LABlab(30.58, 52.38, -70.29)
CIE-LCHlch(30.58, 87.66, 306.69°)
OKLaboklab(42.51% 0.0499 -0.2026)
OKLCHoklch(42.51% 0.209 283.8)
XYZxyz(12.3371, 6.4754, 46.4893)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A28B9 #97B928
analogous
#284FB9 #4A28B9 #9328B9
triadic
#4A28B9 #B94A28 #28B94A
tetradic
#4A28B9 #B9284F #97B928 #28B993
square
#4A28B9 #B9284F #97B928 #28B993
split-complementary
#4A28B9 #B99328 #4FB928
monochromatic
#221254 #361D87 #4A28B9 #6947D7 #9279E2

Accessibility & contrast

On white

9.15
#4A28B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#4A28B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A28B9
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A28B9#FFFFFF#000000##FFFFFF
##4A28B91.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBD
Deuteranopia (green-blind)
#0043B6
Tritanopia (blue-blind)
#005370
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4a28b9;
/* rgb */ color: rgb(74, 40, 185);
/* oklch */ color: oklch(42.5% 0.209 283.8);
Tailwind
colors: {
  custom: {
    50: '#8a67cf',
    500: '#4a28b9',
    950: '#000000',
  },
}
SCSS
$custom: #4a28b9;
$custom-light: #8a67cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4a28b9",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 185
  },
  "hsl": {
    "h": 254.069,
    "s": 64.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42511,
    "c": 0.20868,
    "h": 283.8
  },
  "luminance": 0.06476
}

Semantic roles & 50–950 ramp

primary
#4A28B9
secondary
#B6CA73
accent
#E740C0
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4A28B9

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

Preview Lab → · Contrast checker → · Palette generator →

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