#4B278B#4B278B

#4B278B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.156 H 294.3°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#4B278B
RGBrgb(75, 39, 139)
HSLhsl(262, 56%, 35%)
HSVhsv(262, 72%, 55%)
CMYKcmyk(46%, 71.9%, 0%, 45.5%)
CIE-LABlab(26.19, 39.86, -49.59)
CIE-LCHlch(26.19, 63.62, 308.79°)
OKLaboklab(38.13% 0.064 -0.1419)
OKLCHoklch(38.13% 0.156 294.3)
XYZxyz(8.2861, 4.8107, 24.9131)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B278B #678B27
analogous
#27358B #4B278B #7D278B
triadic
#4B278B #8B4B27 #278B4B
tetradic
#4B278B #8B2735 #678B27 #278B7D
square
#4B278B #8B2735 #678B27 #278B7D
split-complementary
#4B278B #8B7D27 #358B27
monochromatic
#170C2B #311A5B #4B278B #6534BB #865BD1

Accessibility & contrast

On white

10.70
#4B278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4B278B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B278B
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B278B#FFFFFF#000000##FFFFFF
##4B278B1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003C89
Tritanopia (blue-blind)
#394056
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4b278b;
/* rgb */ color: rgb(75, 39, 139);
/* oklch */ color: oklch(38.1% 0.156 294.3);
Tailwind
colors: {
  custom: {
    50: '#8364ae',
    500: '#4b278b',
    950: '#000000',
  },
}
SCSS
$custom: #4b278b;
$custom-light: #8364ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4b278b",
  "rgb": {
    "r": 75,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 261.6,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38129,
    "c": 0.15571,
    "h": 294.3
  },
  "luminance": 0.04811
}

Semantic roles & 50–950 ramp

primary
#4B278B
secondary
#94B658
accent
#DF48A9
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4B278B

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

Preview Lab → · Contrast checker → · Palette generator →

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