#4B288C#4B288C

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

Color values

HEX#4B288C
RGBrgb(75, 40, 140)
HSLhsl(261, 56%, 35%)
HSVhsv(261, 71%, 55%)
CMYKcmyk(46.4%, 71.4%, 0%, 45.1%)
CIE-LABlab(26.47, 39.60, -49.75)
CIE-LCHlch(26.47, 63.59, 308.52°)
OKLaboklab(38.35% 0.0628 -0.1424)
OKLCHoklch(38.35% 0.156 293.8)
XYZxyz(8.3928, 4.9066, 25.3107)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B288C #698C28
analogous
#28378C #4B288C #7D288C
triadic
#4B288C #8C4B28 #288C4B
tetradic
#4B288C #8C2837 #698C28 #288C7D
square
#4B288C #8C2837 #698C28 #288C7D
split-complementary
#4B288C #8C7D28 #378C28
monochromatic
#180D2D #311A5C #4B288C #6436BC #865ED1

Accessibility & contrast

On white

10.60
#4B288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B288C
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B288C#FFFFFF#000000##FFFFFF
##4B288C1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#003D8A
Tritanopia (blue-blind)
#384157
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4b288c;
/* rgb */ color: rgb(75, 40, 140);
/* oklch */ color: oklch(38.4% 0.156 293.8);
Tailwind
colors: {
  custom: {
    50: '#8465ae',
    500: '#4b288c',
    950: '#000000',
  },
}
SCSS
$custom: #4b288c;
$custom-light: #8465ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4b288c",
  "rgb": {
    "r": 75,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 261,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38354,
    "c": 0.15567,
    "h": 293.8
  },
  "luminance": 0.04907
}

Semantic roles & 50–950 ramp

primary
#4B288C
secondary
#96B65A
accent
#DF49AA
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4B288C

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

Preview Lab → · Contrast checker → · Palette generator →

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