#4B288D#4B288D

#4B288D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.157 H 293.5°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#4B288D
RGBrgb(75, 40, 141)
HSLhsl(261, 56%, 35%)
HSVhsv(261, 72%, 55%)
CMYKcmyk(46.8%, 71.6%, 0%, 44.7%)
CIE-LABlab(26.55, 39.89, -50.24)
CIE-LCHlch(26.55, 64.15, 308.45°)
OKLaboklab(38.44% 0.0626 -0.1439)
OKLCHoklch(38.44% 0.157 293.5)
XYZxyz(8.4668, 4.9363, 25.7008)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B288D #6A8D28
analogous
#28378D #4B288D #7D288D
triadic
#4B288D #8D4B28 #288D4B
tetradic
#4B288D #8D2837 #6A8D28 #288D7D
square
#4B288D #8D2837 #6A8D28 #288D7D
split-complementary
#4B288D #8D7D28 #378D28
monochromatic
#180D2E #321A5D #4B288D #6436BD #865ED1

Accessibility & contrast

On white

10.57
#4B288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4B288D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B288D
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B288D#FFFFFF#000000##FFFFFF
##4B288D1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#384157
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4b288d;
/* rgb */ color: rgb(75, 40, 141);
/* oklch */ color: oklch(38.4% 0.157 293.5);
Tailwind
colors: {
  custom: {
    50: '#8465af',
    500: '#4b288d',
    950: '#000000',
  },
}
SCSS
$custom: #4b288d;
$custom-light: #8465af;
$custom-dark: #000000;
JSON
{
  "hex": "#4b288d",
  "rgb": {
    "r": 75,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 260.792,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38442,
    "c": 0.15689,
    "h": 293.5
  },
  "luminance": 0.04937
}

Semantic roles & 50–950 ramp

primary
#4B288D
secondary
#97B75A
accent
#DF49AB
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4B288D

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

Preview Lab → · Contrast checker → · Palette generator →

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