#4B2888#4B2888

#4B2888 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.0% C 0.151 H 294.9°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#4B2888
RGBrgb(75, 40, 136)
HSLhsl(262, 55%, 35%)
HSVhsv(262, 71%, 53%)
CMYKcmyk(44.9%, 70.6%, 0%, 46.7%)
CIE-LABlab(26.13, 38.46, -47.81)
CIE-LCHlch(26.13, 61.37, 308.82°)
OKLaboklab(38.01% 0.0635 -0.1367)
OKLCHoklch(38.01% 0.151 294.9)
XYZxyz(8.1032, 4.7908, 23.7856)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2888 #658828
analogous
#283588 #4B2888 #7B2888
triadic
#4B2888 #884B28 #28884B
tetradic
#4B2888 #882835 #658828 #28887B
square
#4B2888 #882835 #658828 #28887B
split-complementary
#4B2888 #887B28 #358828
monochromatic
#170C29 #311A59 #4B2888 #6536B7 #865BCF

Accessibility & contrast

On white

10.72
#4B2888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4B2888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2888
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2888#FFFFFF#000000##FFFFFF
##4B28881.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8B
Deuteranopia (green-blind)
#003C86
Tritanopia (blue-blind)
#3A4055
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4b2888;
/* rgb */ color: rgb(75, 40, 136);
/* oklch */ color: oklch(38.0% 0.151 294.9);
Tailwind
colors: {
  custom: {
    50: '#8365ab',
    500: '#4b2888',
    950: '#000000',
  },
}
SCSS
$custom: #4b2888;
$custom-light: #8365ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2888",
  "rgb": {
    "r": 75,
    "g": 40,
    "b": 136
  },
  "hsl": {
    "h": 261.875,
    "s": 54.545,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38009,
    "c": 0.15076,
    "h": 294.9
  },
  "luminance": 0.04791
}

Semantic roles & 50–950 ramp

primary
#4B2888
secondary
#92B458
accent
#DE4AA8
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4B2888

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

Preview Lab → · Contrast checker → · Palette generator →

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