#4B278D#4B278D

#4B278D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.158 H 293.7°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#4B278D
RGBrgb(75, 39, 141)
HSLhsl(261, 57%, 35%)
HSVhsv(261, 72%, 55%)
CMYKcmyk(46.8%, 72.3%, 0%, 44.7%)
CIE-LABlab(26.36, 40.42, -50.55)
CIE-LCHlch(26.36, 64.73, 308.65°)
OKLaboklab(38.31% 0.0636 -0.1448)
OKLCHoklch(38.31% 0.158 293.7)
XYZxyz(8.4336, 4.8697, 25.6897)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B278D #698D27
analogous
#27368D #4B278D #7E278D
triadic
#4B278D #8D4B27 #278D4B
tetradic
#4B278D #8D2736 #698D27 #278D7E
square
#4B278D #8D2736 #698D27 #278D7E
split-complementary
#4B278D #8D7E27 #368D27
monochromatic
#180C2D #311A5D #4B278D #6434BD #865CD2

Accessibility & contrast

On white

10.64
#4B278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4B278D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B278D
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B278D#FFFFFF#000000##FFFFFF
##4B278D1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#384157
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4b278d;
/* rgb */ color: rgb(75, 39, 141);
/* oklch */ color: oklch(38.3% 0.158 293.7);
Tailwind
colors: {
  custom: {
    50: '#8464af',
    500: '#4b278d',
    950: '#000000',
  },
}
SCSS
$custom: #4b278d;
$custom-light: #8464af;
$custom-dark: #000000;
JSON
{
  "hex": "#4b278d",
  "rgb": {
    "r": 75,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 261.176,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38305,
    "c": 0.15813,
    "h": 293.7
  },
  "luminance": 0.0487
}

Semantic roles & 50–950 ramp

primary
#4B278D
secondary
#96B759
accent
#E048AA
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4B278D

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

Preview Lab → · Contrast checker → · Palette generator →

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