#4B28BD#4B28BD

#4B28BD is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 43.0% C 0.213 H 283.6°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#4B28BD
RGBrgb(75, 40, 189)
HSLhsl(254, 65%, 45%)
HSVhsv(254, 79%, 74%)
CMYKcmyk(60.3%, 78.8%, 0%, 25.9%)
CIE-LABlab(31.08, 53.63, -71.82)
CIE-LCHlch(31.08, 89.64, 306.75°)
OKLaboklab(43% 0.0503 -0.2071)
OKLCHoklch(43% 0.213 283.6)
XYZxyz(12.8429, 6.6867, 48.7481)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B28BD #9ABD28
analogous
#284FBD #4B28BD #9628BD
triadic
#4B28BD #BD4B28 #28BD4B
tetradic
#4B28BD #BD284F #9ABD28 #28BD96
square
#4B28BD #BD284F #9ABD28 #28BD96
split-complementary
#4B28BD #BD9628 #4FBD28
monochromatic
#231358 #371D8A #4B28BD #6B4AD9 #947CE3

Accessibility & contrast

On white

8.98
#4B28BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4B28BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B28BD
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B28BD#FFFFFF#000000##FFFFFF
##4B28BD1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b28bd;
/* rgb */ color: rgb(75, 40, 189);
/* oklch */ color: oklch(43.0% 0.213 283.6);
Tailwind
colors: {
  custom: {
    50: '#8b67d2',
    500: '#4b28bd',
    950: '#000000',
  },
}
SCSS
$custom: #4b28bd;
$custom-light: #8b67d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4b28bd",
  "rgb": {
    "r": 75,
    "g": 40,
    "b": 189
  },
  "hsl": {
    "h": 254.094,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43004,
    "c": 0.21308,
    "h": 283.6
  },
  "luminance": 0.06688
}

Semantic roles & 50–950 ramp

primary
#4B28BD
secondary
#B7CB75
accent
#E840C1
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4B28BD

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

Preview Lab → · Contrast checker → · Palette generator →

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