#4B2298#4B2298

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

Color values

HEX#4B2298
RGBrgb(75, 34, 152)
HSLhsl(261, 63%, 36%)
HSVhsv(261, 78%, 60%)
CMYKcmyk(50.7%, 77.6%, 0%, 40.4%)
CIE-LABlab(26.47, 46.02, -57.16)
CIE-LCHlch(26.47, 73.39, 308.84°)
OKLaboklab(38.69% 0.0654 -0.1641)
OKLCHoklch(38.69% 0.177 291.7)
XYZxyz(9.1396, 4.9066, 30.1652)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2298 #6F9822
analogous
#223498 #4B2298 #862298
triadic
#4B2298 #984B22 #22984B
tetradic
#4B2298 #982234 #6F9822 #229886
square
#4B2298 #982234 #6F9822 #229886
split-complementary
#4B2298 #988622 #349822
monochromatic
#1A0C34 #321766 #4B2298 #642DCA #875ADA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4B2298#FFFFFF#000000##FFFFFF
##4B22981.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)
#00409B
Deuteranopia (green-blind)
#003C96
Tritanopia (blue-blind)
#31435C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4b2298;
/* rgb */ color: rgb(75, 34, 152);
/* oklch */ color: oklch(38.7% 0.177 291.7);
Tailwind
colors: {
  custom: {
    50: '#8662b7',
    500: '#4b2298',
    950: '#000000',
  },
}
SCSS
$custom: #4b2298;
$custom-light: #8662b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2298",
  "rgb": {
    "r": 75,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 260.847,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38686,
    "c": 0.17669,
    "h": 291.7
  },
  "luminance": 0.04907
}

Semantic roles & 50–950 ramp

primary
#4B2298
secondary
#9BBE57
accent
#E641AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4B2298

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

Preview Lab → · Contrast checker → · Palette generator →

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