#4A28B7#4A28B7

#4A28B7 is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.3% C 0.206 H 284.2°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#4A28B7
RGBrgb(74, 40, 183)
HSLhsl(254, 64%, 44%)
HSVhsv(254, 78%, 72%)
CMYKcmyk(59.6%, 78.1%, 0%, 28.2%)
CIE-LABlab(30.38, 51.81, -69.43)
CIE-LCHlch(30.38, 86.63, 306.73°)
OKLaboklab(42.31% 0.0505 -0.2001)
OKLCHoklch(42.31% 0.206 284.2)
XYZxyz(12.1275, 6.3915, 45.3852)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A28B7 #95B728
analogous
#284DB7 #4A28B7 #9128B7
triadic
#4A28B7 #B74A28 #28B74A
tetradic
#4A28B7 #B7284D #95B728 #28B791
square
#4A28B7 #B7284D #95B728 #28B791
split-complementary
#4A28B7 #B79128 #4DB728
monochromatic
#211253 #361D85 #4A28B7 #6846D6 #9178E1

Accessibility & contrast

On white

9.22
#4A28B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4A28B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A28B7
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A28B7#FFFFFF#000000##FFFFFF
##4A28B71.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBB
Deuteranopia (green-blind)
#0043B4
Tritanopia (blue-blind)
#00526F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4a28b7;
/* rgb */ color: rgb(74, 40, 183);
/* oklch */ color: oklch(42.3% 0.206 284.2);
Tailwind
colors: {
  custom: {
    50: '#8a67ce',
    500: '#4a28b7',
    950: '#000000',
  },
}
SCSS
$custom: #4a28b7;
$custom-light: #8a67ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4a28b7",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 183
  },
  "hsl": {
    "h": 254.266,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.4231,
    "c": 0.2064,
    "h": 284.2
  },
  "luminance": 0.06392
}

Semantic roles & 50–950 ramp

primary
#4A28B7
secondary
#B4C972
accent
#E741C0
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4A28B7

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

Preview Lab → · Contrast checker → · Palette generator →

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