#4B277C#4B277C

#4B277C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.9% C 0.137 H 298.9°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#4B277C
RGBrgb(75, 39, 124)
HSLhsl(265, 52%, 32%)
HSVhsv(265, 69%, 49%)
CMYKcmyk(39.5%, 68.5%, 0%, 51.4%)
CIE-LABlab(24.96, 35.64, -42.18)
CIE-LCHlch(24.96, 55.22, 310.20°)
OKLaboklab(36.86% 0.0664 -0.1202)
OKLCHoklch(36.86% 0.137 298.9)
XYZxyz(7.2643, 4.4020, 19.5318)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B277C #587C27
analogous
#272E7C #4B277C #76277C
triadic
#4B277C #7C4B27 #277C4B
tetradic
#4B277C #7C272E #587C27 #277C76
square
#4B277C #7C272E #587C27 #277C76
split-complementary
#4B277C #7C7627 #2E7C27
monochromatic
#130A1F #2F184D #4B277C #6736AB #8654C9

Accessibility & contrast

On white

11.17
#4B277C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4B277C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B277C
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B277C#FFFFFF#000000##FFFFFF
##4B277C1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#003A7A
Tritanopia (blue-blind)
#403B4E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4b277c;
/* rgb */ color: rgb(75, 39, 124);
/* oklch */ color: oklch(36.9% 0.137 298.9);
Tailwind
colors: {
  custom: {
    50: '#8264a3',
    500: '#4b277c',
    950: '#000000',
  },
}
SCSS
$custom: #4b277c;
$custom-light: #8264a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4b277c",
  "rgb": {
    "r": 75,
    "g": 39,
    "b": 124
  },
  "hsl": {
    "h": 265.412,
    "s": 52.147,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36864,
    "c": 0.1373,
    "h": 298.9
  },
  "luminance": 0.04402
}

Semantic roles & 50–950 ramp

primary
#4B277C
secondary
#87AE51
accent
#DC4C9F
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4B277C

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

Preview Lab → · Contrast checker → · Palette generator →

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