#4A28B3#4A28B3

#4A28B3 is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 41.9% C 0.202 H 284.8°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#4A28B3
RGBrgb(74, 40, 179)
HSLhsl(255, 63%, 43%)
HSVhsv(255, 78%, 70%)
CMYKcmyk(58.7%, 77.7%, 0%, 29.8%)
CIE-LABlab(29.98, 50.66, -67.71)
CIE-LCHlch(29.98, 84.57, 306.80°)
OKLaboklab(41.91% 0.0517 -0.1951)
OKLCHoklch(41.91% 0.202 284.8)
XYZxyz(11.7170, 6.2274, 43.2237)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A28B3 #91B328
analogous
#284CB3 #4A28B3 #8F28B3
triadic
#4A28B3 #B34A28 #28B34A
tetradic
#4A28B3 #B3284C #91B328 #28B38F
square
#4A28B3 #B3284C #91B328 #28B38F
split-complementary
#4A28B3 #B38F28 #4CB328
monochromatic
#21124F #351D81 #4A28B3 #6743D5 #8F75E0

Accessibility & contrast

On white

9.35
#4A28B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4A28B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A28B3
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A28B3#FFFFFF#000000##FFFFFF
##4A28B31.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB7
Deuteranopia (green-blind)
#0042B0
Tritanopia (blue-blind)
#0C506D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4a28b3;
/* rgb */ color: rgb(74, 40, 179);
/* oklch */ color: oklch(41.9% 0.202 284.8);
Tailwind
colors: {
  custom: {
    50: '#8967cb',
    500: '#4a28b3',
    950: '#000000',
  },
}
SCSS
$custom: #4a28b3;
$custom-light: #8967cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4a28b3",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 179
  },
  "hsl": {
    "h": 254.676,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41911,
    "c": 0.20183,
    "h": 284.8
  },
  "luminance": 0.06228
}

Semantic roles & 50–950 ramp

primary
#4A28B3
secondary
#B2C86F
accent
#E641BE
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4A28B3

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

Preview Lab → · Contrast checker → · Palette generator →

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