#4A28BC#4A28BC

#4A28BC is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.8% C 0.212 H 283.4°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#4A28BC
RGBrgb(74, 40, 188)
HSLhsl(254, 65%, 45%)
HSVhsv(254, 79%, 74%)
CMYKcmyk(60.6%, 78.7%, 0%, 26.3%)
CIE-LABlab(30.89, 53.23, -71.56)
CIE-LCHlch(30.89, 89.19, 306.65°)
OKLaboklab(42.82% 0.0491 -0.2063)
OKLCHoklch(42.82% 0.212 283.4)
XYZxyz(12.6571, 6.6034, 48.1748)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A28BC #9ABC28
analogous
#2850BC #4A28BC #9428BC
triadic
#4A28BC #BC4A28 #28BC4A
tetradic
#4A28BC #BC2850 #9ABC28 #28BC94
square
#4A28BC #BC2850 #9ABC28 #28BC94
split-complementary
#4A28BC #BC9428 #50BC28
monochromatic
#221357 #361D8A #4A28BC #6A49D8 #937BE3

Accessibility & contrast

On white

9.05
#4A28BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4A28BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A28BC
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A28BC#FFFFFF#000000##FFFFFF
##4A28BC1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC0
Deuteranopia (green-blind)
#0044B9
Tritanopia (blue-blind)
#005472
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4a28bc;
/* rgb */ color: rgb(74, 40, 188);
/* oklch */ color: oklch(42.8% 0.212 283.4);
Tailwind
colors: {
  custom: {
    50: '#8b67d1',
    500: '#4a28bc',
    950: '#000000',
  },
}
SCSS
$custom: #4a28bc;
$custom-light: #8b67d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a28bc",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 188
  },
  "hsl": {
    "h": 253.784,
    "s": 64.912,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42815,
    "c": 0.21208,
    "h": 283.4
  },
  "luminance": 0.06604
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4A28BC

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

Preview Lab → · Contrast checker → · Palette generator →

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