#4B288B#4B288B

#4B288B is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.154 H 294.1°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#4B288B
RGBrgb(75, 40, 139)
HSLhsl(261, 55%, 35%)
HSVhsv(261, 71%, 55%)
CMYKcmyk(46%, 71.2%, 0%, 45.5%)
CIE-LABlab(26.38, 39.32, -49.27)
CIE-LCHlch(26.38, 63.04, 308.59°)
OKLaboklab(38.27% 0.063 -0.141)
OKLCHoklch(38.27% 0.154 294.1)
XYZxyz(8.3194, 4.8773, 24.9242)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B288B #688B28
analogous
#28378B #4B288B #7C288B
triadic
#4B288B #8B4B28 #288B4B
tetradic
#4B288B #8B2837 #688B28 #288B7C
square
#4B288B #8B2837 #688B28 #288B7C
split-complementary
#4B288B #8B7C28 #378B28
monochromatic
#180D2C #311A5B #4B288B #6536BB #865DD0

Accessibility & contrast

On white

10.63
#4B288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4B288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B288B
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B288B#FFFFFF#000000##FFFFFF
##4B288B1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#394156
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4b288b;
/* rgb */ color: rgb(75, 40, 139);
/* oklch */ color: oklch(38.3% 0.154 294.1);
Tailwind
colors: {
  custom: {
    50: '#8365ae',
    500: '#4b288b',
    950: '#000000',
  },
}
SCSS
$custom: #4b288b;
$custom-light: #8365ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4b288b",
  "rgb": {
    "r": 75,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 261.212,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38267,
    "c": 0.15445,
    "h": 294.1
  },
  "luminance": 0.04878
}

Semantic roles & 50–950 ramp

primary
#4B288B
secondary
#95B659
accent
#DF49AA
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4B288B

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

Preview Lab → · Contrast checker → · Palette generator →

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