#4A278F#4A278F

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

Color values

HEX#4A278F
RGBrgb(74, 39, 143)
HSLhsl(260, 57%, 36%)
HSVhsv(260, 73%, 56%)
CMYKcmyk(48.3%, 72.7%, 0%, 43.9%)
CIE-LABlab(26.42, 40.81, -51.70)
CIE-LCHlch(26.42, 65.87, 308.29°)
OKLaboklab(38.37% 0.0617 -0.1482)
OKLCHoklch(38.37% 0.161 292.6)
XYZxyz(8.5061, 4.8898, 26.4769)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A278F #6C8F27
analogous
#27388F #4A278F #7E278F
triadic
#4A278F #8F4A27 #278F4A
tetradic
#4A278F #8F2738 #6C8F27 #278F7E
square
#4A278F #8F2738 #6C8F27 #278F7E
split-complementary
#4A278F #8F7E27 #388F27
monochromatic
#180D2F #311A5F #4A278F #6334BF #855DD3

Accessibility & contrast

On white

10.62
#4A278F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A278F
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A278F#FFFFFF#000000##FFFFFF
##4A278F1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#354258
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4a278f;
/* rgb */ color: rgb(74, 39, 143);
/* oklch */ color: oklch(38.4% 0.161 292.6);
Tailwind
colors: {
  custom: {
    50: '#8364b1',
    500: '#4a278f',
    950: '#000000',
  },
}
SCSS
$custom: #4a278f;
$custom-light: #8364b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a278f",
  "rgb": {
    "r": 74,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 260.192,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38374,
    "c": 0.16051,
    "h": 292.6
  },
  "luminance": 0.0489
}

Semantic roles & 50–950 ramp

primary
#4A278F
secondary
#98B85A
accent
#E047AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #4A278F

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

Preview Lab → · Contrast checker → · Palette generator →

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