#4B2876#4B2876

#4B2876 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.5% C 0.128 H 300.9°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#4B2876
RGBrgb(75, 40, 118)
HSLhsl(267, 49%, 31%)
HSVhsv(267, 66%, 46%)
CMYKcmyk(36.4%, 66.1%, 0%, 53.7%)
CIE-LABlab(24.71, 33.42, -38.77)
CIE-LCHlch(24.71, 51.19, 310.76°)
OKLaboklab(36.54% 0.0658 -0.1102)
OKLCHoklch(36.54% 0.128 300.9)
XYZxyz(6.9297, 4.3214, 17.6051)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2876 #537628
analogous
#282C76 #4B2876 #722876
triadic
#4B2876 #764B28 #28764B
tetradic
#4B2876 #76282C #537628 #287672
square
#4B2876 #76282C #537628 #287672
split-complementary
#4B2876 #767228 #2C7628
monochromatic
#11091B #2E1948 #4B2876 #6837A4 #8654C5

Accessibility & contrast

On white

11.26
#4B2876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4B2876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2876
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2876#FFFFFF#000000##FFFFFF
##4B28761.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A78
Deuteranopia (green-blind)
#093A74
Tritanopia (blue-blind)
#42394B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4b2876;
/* rgb */ color: rgb(75, 40, 118);
/* oklch */ color: oklch(36.5% 0.128 300.9);
Tailwind
colors: {
  custom: {
    50: '#81649e',
    500: '#4b2876',
    950: '#000000',
  },
}
SCSS
$custom: #4b2876;
$custom-light: #81649e;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2876",
  "rgb": {
    "r": 75,
    "g": 40,
    "b": 118
  },
  "hsl": {
    "h": 266.923,
    "s": 49.367,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36537,
    "c": 0.12832,
    "h": 300.9
  },
  "luminance": 0.04321
}

Semantic roles & 50–950 ramp

primary
#4B2876
secondary
#81A852
accent
#D94F9B
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4B2876

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

Preview Lab → · Contrast checker → · Palette generator →

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