#4B277D#4B277D

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

Color values

HEX#4B277D
RGBrgb(75, 39, 125)
HSLhsl(265, 52%, 32%)
HSVhsv(265, 69%, 49%)
CMYKcmyk(40%, 68.8%, 0%, 51%)
CIE-LABlab(25.04, 35.92, -42.68)
CIE-LCHlch(25.04, 55.79, 310.08°)
OKLaboklab(36.95% 0.0663 -0.1216)
OKLCHoklch(36.95% 0.139 298.6)
XYZxyz(7.3279, 4.4275, 19.8666)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B277D #597D27
analogous
#272E7D #4B277D #76277D
triadic
#4B277D #7D4B27 #277D4B
tetradic
#4B277D #7D272E #597D27 #277D76
square
#4B277D #7D272E #597D27 #277D76
split-complementary
#4B277D #7D7627 #2E7D27
monochromatic
#130A20 #2F184E #4B277D #6736AC #8655CA

Accessibility & contrast

On white

11.14
#4B277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4B277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B277D
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B277D#FFFFFF#000000##FFFFFF
##4B277D1.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#3F3B4E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4b277d;
/* rgb */ color: rgb(75, 39, 125);
/* oklch */ color: oklch(36.9% 0.139 298.6);
Tailwind
colors: {
  custom: {
    50: '#8264a3',
    500: '#4b277d',
    950: '#000000',
  },
}
SCSS
$custom: #4b277d;
$custom-light: #8264a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4b277d",
  "rgb": {
    "r": 75,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 265.116,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36945,
    "c": 0.13854,
    "h": 298.6
  },
  "luminance": 0.04428
}

Semantic roles & 50–950 ramp

primary
#4B277D
secondary
#87AF51
accent
#DC4CA0
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4B277D

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

Preview Lab → · Contrast checker → · Palette generator →

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