#4B278C#4B278C

#4B278C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.157 H 294.0°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#4B278C
RGBrgb(75, 39, 140)
HSLhsl(261, 56%, 35%)
HSVhsv(261, 72%, 55%)
CMYKcmyk(46.4%, 72.1%, 0%, 45.1%)
CIE-LABlab(26.27, 40.14, -50.07)
CIE-LCHlch(26.27, 64.17, 308.72°)
OKLaboklab(38.22% 0.0638 -0.1434)
OKLCHoklch(38.22% 0.157 294)
XYZxyz(8.3595, 4.8401, 25.2996)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B278C #688C27
analogous
#27358C #4B278C #7D278C
triadic
#4B278C #8C4B27 #278C4B
tetradic
#4B278C #8C2735 #688C27 #278C7D
square
#4B278C #8C2735 #688C27 #278C7D
split-complementary
#4B278C #8C7D27 #358C27
monochromatic
#180C2C #311A5C #4B278C #6534BC #865CD2

Accessibility & contrast

On white

10.67
#4B278C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B278C
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B278C#FFFFFF#000000##FFFFFF
##4B278C1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#003C8A
Tritanopia (blue-blind)
#384156
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4b278c;
/* rgb */ color: rgb(75, 39, 140);
/* oklch */ color: oklch(38.2% 0.157 294.0);
Tailwind
colors: {
  custom: {
    50: '#8464ae',
    500: '#4b278c',
    950: '#000000',
  },
}
SCSS
$custom: #4b278c;
$custom-light: #8464ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4b278c",
  "rgb": {
    "r": 75,
    "g": 39,
    "b": 140
  },
  "hsl": {
    "h": 261.386,
    "s": 56.425,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38217,
    "c": 0.15692,
    "h": 294
  },
  "luminance": 0.0484
}

Semantic roles & 50–950 ramp

primary
#4B278C
secondary
#95B758
accent
#E048AA
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4B278C

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

Preview Lab → · Contrast checker → · Palette generator →

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