#4B28B9#4B28B9

#4B28B9 is a dark, highly saturated violet. Relative luminance 0.065; OKLCH L 42.6% C 0.209 H 284.3°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#4B28B9
RGBrgb(75, 40, 185)
HSLhsl(254, 64%, 44%)
HSVhsv(254, 78%, 73%)
CMYKcmyk(59.5%, 78.4%, 0%, 27.5%)
CIE-LABlab(30.68, 52.49, -70.13)
CIE-LCHlch(30.68, 87.60, 306.82°)
OKLaboklab(42.6% 0.0514 -0.2021)
OKLCHoklch(42.6% 0.209 284.3)
XYZxyz(12.4147, 6.5154, 46.4929)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B28B9 #96B928
analogous
#284EB9 #4B28B9 #9428B9
triadic
#4B28B9 #B94B28 #28B94B
tetradic
#4B28B9 #B9284E #96B928 #28B994
square
#4B28B9 #B9284E #96B928 #28B994
split-complementary
#4B28B9 #B99428 #4EB928
monochromatic
#221254 #371D87 #4B28B9 #6A47D7 #9379E2

Accessibility & contrast

On white

9.12
#4B28B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#4B28B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B28B9
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B28B9#FFFFFF#000000##FFFFFF
##4B28B91.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBD
Deuteranopia (green-blind)
#0044B6
Tritanopia (blue-blind)
#005370
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4b28b9;
/* rgb */ color: rgb(75, 40, 185);
/* oklch */ color: oklch(42.6% 0.209 284.3);
Tailwind
colors: {
  custom: {
    50: '#8b67cf',
    500: '#4b28b9',
    950: '#000000',
  },
}
SCSS
$custom: #4b28b9;
$custom-light: #8b67cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4b28b9",
  "rgb": {
    "r": 75,
    "g": 40,
    "b": 185
  },
  "hsl": {
    "h": 254.483,
    "s": 64.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42601,
    "c": 0.20856,
    "h": 284.3
  },
  "luminance": 0.06516
}

Semantic roles & 50–950 ramp

primary
#4B28B9
secondary
#B5CA73
accent
#E740BF
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4B28B9

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

Preview Lab → · Contrast checker → · Palette generator →

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