#4A28BA#4A28BA

#4A28BA is a dark, highly saturated violet. Relative luminance 0.065; OKLCH L 42.6% C 0.210 H 283.7°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#4A28BA
RGBrgb(74, 40, 186)
HSLhsl(254, 65%, 44%)
HSVhsv(254, 78%, 73%)
CMYKcmyk(60.2%, 78.5%, 0%, 27.1%)
CIE-LABlab(30.68, 52.66, -70.71)
CIE-LCHlch(30.68, 88.17, 306.68°)
OKLaboklab(42.61% 0.0496 -0.2039)
OKLCHoklch(42.61% 0.21 283.7)
XYZxyz(12.4430, 6.5178, 47.0472)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A28BA #98BA28
analogous
#284FBA #4A28BA #9328BA
triadic
#4A28BA #BA4A28 #28BA4A
tetradic
#4A28BA #BA284F #98BA28 #28BA93
square
#4A28BA #BA284F #98BA28 #28BA93
split-complementary
#4A28BA #BA9328 #4FBA28
monochromatic
#221255 #361D88 #4A28BA #6948D8 #927AE2

Accessibility & contrast

On white

9.12
#4A28BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A28BA
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A28BA#FFFFFF#000000##FFFFFF
##4A28BA1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBE
Deuteranopia (green-blind)
#0043B7
Tritanopia (blue-blind)
#005371
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4a28ba;
/* rgb */ color: rgb(74, 40, 186);
/* oklch */ color: oklch(42.6% 0.210 283.7);
Tailwind
colors: {
  custom: {
    50: '#8a67d0',
    500: '#4a28ba',
    950: '#000000',
  },
}
SCSS
$custom: #4a28ba;
$custom-light: #8a67d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a28ba",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 186
  },
  "hsl": {
    "h": 253.973,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42612,
    "c": 0.20982,
    "h": 283.7
  },
  "luminance": 0.06519
}

Semantic roles & 50–950 ramp

primary
#4A28BA
secondary
#B6CA73
accent
#E840C1
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4A28BA

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

Preview Lab → · Contrast checker → · Palette generator →

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