#4A278E#4A278E

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

Color values

HEX#4A278E
RGBrgb(74, 39, 142)
HSLhsl(260, 57%, 35%)
HSVhsv(260, 73%, 56%)
CMYKcmyk(47.9%, 72.5%, 0%, 44.3%)
CIE-LABlab(26.33, 40.53, -51.22)
CIE-LCHlch(26.33, 65.31, 308.35°)
OKLaboklab(38.28% 0.0619 -0.1468)
OKLCHoklch(38.28% 0.159 292.9)
XYZxyz(8.4307, 4.8596, 26.0797)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A278E #6B8E27
analogous
#27388E #4A278E #7D278E
triadic
#4A278E #8E4A27 #278E4A
tetradic
#4A278E #8E2738 #6B8E27 #278E7D
square
#4A278E #8E2738 #6B8E27 #278E7D
split-complementary
#4A278E #8E7D27 #388E27
monochromatic
#180D2E #311A5E #4A278E #6334BE #855DD2

Accessibility & contrast

On white

10.65
#4A278E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A278E
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A278E#FFFFFF#000000##FFFFFF
##4A278E1.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#354158
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4a278e;
/* rgb */ color: rgb(74, 39, 142);
/* oklch */ color: oklch(38.3% 0.159 292.9);
Tailwind
colors: {
  custom: {
    50: '#8364b0',
    500: '#4a278e',
    950: '#000000',
  },
}
SCSS
$custom: #4a278e;
$custom-light: #8364b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a278e",
  "rgb": {
    "r": 74,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 260.388,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38284,
    "c": 0.1593,
    "h": 292.9
  },
  "luminance": 0.0486
}

Semantic roles & 50–950 ramp

primary
#4A278E
secondary
#98B859
accent
#E048AC
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #4A278E

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

Preview Lab → · Contrast checker → · Palette generator →

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