#4B277B#4B277B

#4B277B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.8% C 0.136 H 299.3°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#4B277B
RGBrgb(75, 39, 123)
HSLhsl(266, 52%, 32%)
HSVhsv(266, 68%, 48%)
CMYKcmyk(39%, 68.3%, 0%, 51.8%)
CIE-LABlab(24.88, 35.37, -41.67)
CIE-LCHlch(24.88, 54.66, 310.32°)
OKLaboklab(36.78% 0.0665 -0.1187)
OKLCHoklch(36.78% 0.136 299.3)
XYZxyz(7.2014, 4.3769, 19.2005)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B277B #577B27
analogous
#272D7B #4B277B #75277B
triadic
#4B277B #7B4B27 #277B4B
tetradic
#4B277B #7B272D #577B27 #277B75
square
#4B277B #7B272D #577B27 #277B75
split-complementary
#4B277B #7B7527 #2D7B27
monochromatic
#120A1E #2F184D #4B277B #6736A9 #8654C9

Accessibility & contrast

On white

11.20
#4B277B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B277B
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B277B#FFFFFF#000000##FFFFFF
##4B277B1.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#003A79
Tritanopia (blue-blind)
#403A4D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4b277b;
/* rgb */ color: rgb(75, 39, 123);
/* oklch */ color: oklch(36.8% 0.136 299.3);
Tailwind
colors: {
  custom: {
    50: '#8164a2',
    500: '#4b277b',
    950: '#000000',
  },
}
SCSS
$custom: #4b277b;
$custom-light: #8164a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4b277b",
  "rgb": {
    "r": 75,
    "g": 39,
    "b": 123
  },
  "hsl": {
    "h": 265.714,
    "s": 51.852,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36783,
    "c": 0.13606,
    "h": 299.3
  },
  "luminance": 0.04377
}

Semantic roles & 50–950 ramp

primary
#4B277B
secondary
#85AD51
accent
#DB4C9E
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4B277B

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

Preview Lab → · Contrast checker → · Palette generator →

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