#4A28B5#4A28B5

#4A28B5 is a dark, highly saturated violet. Relative luminance 0.063; OKLCH L 42.1% C 0.204 H 284.5°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#4A28B5
RGBrgb(74, 40, 181)
HSLhsl(254, 64%, 43%)
HSVhsv(254, 78%, 71%)
CMYKcmyk(59.1%, 77.9%, 0%, 29%)
CIE-LABlab(30.18, 51.23, -68.58)
CIE-LCHlch(30.18, 85.60, 306.76°)
OKLaboklab(42.11% 0.0511 -0.1976)
OKLCHoklch(42.11% 0.204 284.5)
XYZxyz(11.9208, 6.3089, 44.2967)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A28B5 #93B528
analogous
#284CB5 #4A28B5 #9028B5
triadic
#4A28B5 #B54A28 #28B54A
tetradic
#4A28B5 #B5284C #93B528 #28B590
square
#4A28B5 #B5284C #93B528 #28B590
split-complementary
#4A28B5 #B59028 #4CB528
monochromatic
#211251 #361D83 #4A28B5 #6744D6 #9077E1

Accessibility & contrast

On white

9.28
#4A28B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4A28B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A28B5
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A28B5#FFFFFF#000000##FFFFFF
##4A28B51.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB9
Deuteranopia (green-blind)
#0043B2
Tritanopia (blue-blind)
#06516E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4a28b5;
/* rgb */ color: rgb(74, 40, 181);
/* oklch */ color: oklch(42.1% 0.204 284.5);
Tailwind
colors: {
  custom: {
    50: '#8967cc',
    500: '#4a28b5',
    950: '#000000',
  },
}
SCSS
$custom: #4a28b5;
$custom-light: #8967cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a28b5",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 181
  },
  "hsl": {
    "h": 254.468,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4211,
    "c": 0.20412,
    "h": 284.5
  },
  "luminance": 0.0631
}

Semantic roles & 50–950 ramp

primary
#4A28B5
secondary
#B3C870
accent
#E741BF
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4A28B5

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

Preview Lab → · Contrast checker → · Palette generator →

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