#4B278E#4B278E

#4B278E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.159 H 293.4°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#4B278E
RGBrgb(75, 39, 142)
HSLhsl(261, 57%, 35%)
HSVhsv(261, 73%, 56%)
CMYKcmyk(47.2%, 72.5%, 0%, 44.3%)
CIE-LABlab(26.45, 40.71, -51.03)
CIE-LCHlch(26.45, 65.28, 308.58°)
OKLaboklab(38.39% 0.0634 -0.1462)
OKLCHoklch(38.39% 0.159 293.4)
XYZxyz(8.5083, 4.8996, 26.0834)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B278E #6A8E27
analogous
#27368E #4B278E #7E278E
triadic
#4B278E #8E4B27 #278E4B
tetradic
#4B278E #8E2736 #6A8E27 #278E7E
square
#4B278E #8E2736 #6A8E27 #278E7E
split-complementary
#4B278E #8E7E27 #368E27
monochromatic
#180D2E #321A5E #4B278E #6434BE #865DD2

Accessibility & contrast

On white

10.61
#4B278E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4B278E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B278E
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B278E#FFFFFF#000000##FFFFFF
##4B278E1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#374158
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4b278e;
/* rgb */ color: rgb(75, 39, 142);
/* oklch */ color: oklch(38.4% 0.159 293.4);
Tailwind
colors: {
  custom: {
    50: '#8464b0',
    500: '#4b278e',
    950: '#000000',
  },
}
SCSS
$custom: #4b278e;
$custom-light: #8464b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4b278e",
  "rgb": {
    "r": 75,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 260.971,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38393,
    "c": 0.15933,
    "h": 293.4
  },
  "luminance": 0.049
}

Semantic roles & 50–950 ramp

primary
#4B278E
secondary
#97B859
accent
#E048AB
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #4B278E

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

Preview Lab → · Contrast checker → · Palette generator →

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