#4A278D#4A278D

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

Color values

HEX#4A278D
RGBrgb(74, 39, 141)
HSLhsl(261, 57%, 35%)
HSVhsv(261, 72%, 55%)
CMYKcmyk(47.5%, 72.3%, 0%, 44.7%)
CIE-LABlab(26.24, 40.24, -50.74)
CIE-LCHlch(26.24, 64.76, 308.41°)
OKLaboklab(38.2% 0.0621 -0.1454)
OKLCHoklch(38.2% 0.158 293.1)
XYZxyz(8.3560, 4.8297, 25.6861)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A278D #6A8D27
analogous
#27378D #4A278D #7D278D
triadic
#4A278D #8D4A27 #278D4A
tetradic
#4A278D #8D2737 #6A8D27 #278D7D
square
#4A278D #8D2737 #6A8D27 #278D7D
split-complementary
#4A278D #8D7D27 #378D27
monochromatic
#180C2D #311A5D #4A278D #6334BD #855CD2

Accessibility & contrast

On white

10.68
#4A278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A278D
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A278D#FFFFFF#000000##FFFFFF
##4A278D1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a278d;
/* rgb */ color: rgb(74, 39, 141);
/* oklch */ color: oklch(38.2% 0.158 293.1);
Tailwind
colors: {
  custom: {
    50: '#8364af',
    500: '#4a278d',
    950: '#000000',
  },
}
SCSS
$custom: #4a278d;
$custom-light: #8364af;
$custom-dark: #000000;
JSON
{
  "hex": "#4a278d",
  "rgb": {
    "r": 74,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 260.588,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38196,
    "c": 0.15808,
    "h": 293.1
  },
  "luminance": 0.0483
}

Semantic roles & 50–950 ramp

primary
#4A278D
secondary
#97B759
accent
#E048AC
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4A278D

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

Preview Lab → · Contrast checker → · Palette generator →

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