#4B28B5#4B28B5

#4B28B5 is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.2% C 0.204 H 284.9°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#4B28B5
RGBrgb(75, 40, 181)
HSLhsl(255, 64%, 43%)
HSVhsv(255, 78%, 71%)
CMYKcmyk(58.6%, 77.9%, 0%, 29%)
CIE-LABlab(30.28, 51.36, -68.41)
CIE-LCHlch(30.28, 85.54, 306.89°)
OKLaboklab(42.2% 0.0526 -0.1971)
OKLCHoklch(42.2% 0.204 284.9)
XYZxyz(11.9984, 6.3489, 44.3003)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B28B5 #92B528
analogous
#284BB5 #4B28B5 #9128B5
triadic
#4B28B5 #B54B28 #28B54B
tetradic
#4B28B5 #B5284B #92B528 #28B591
square
#4B28B5 #B5284B #92B528 #28B591
split-complementary
#4B28B5 #B59128 #4BB528
monochromatic
#211251 #361D83 #4B28B5 #6944D6 #9177E1

Accessibility & contrast

On white

9.25
#4B28B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4B28B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B28B5
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B28B5#FFFFFF#000000##FFFFFF
##4B28B51.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b28b5;
/* rgb */ color: rgb(75, 40, 181);
/* oklch */ color: oklch(42.2% 0.204 284.9);
Tailwind
colors: {
  custom: {
    50: '#8a67cc',
    500: '#4b28b5',
    950: '#000000',
  },
}
SCSS
$custom: #4b28b5;
$custom-light: #8a67cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4b28b5",
  "rgb": {
    "r": 75,
    "g": 40,
    "b": 181
  },
  "hsl": {
    "h": 254.894,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42201,
    "c": 0.20401,
    "h": 284.9
  },
  "luminance": 0.0635
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4B28B5

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

Preview Lab → · Contrast checker → · Palette generator →

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