#4A279E#4A279E

#4A279E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.178 H 289.0°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#4A279E
RGBrgb(74, 39, 158)
HSLhsl(258, 60%, 39%)
HSVhsv(258, 75%, 62%)
CMYKcmyk(53.2%, 75.3%, 0%, 38%)
CIE-LABlab(27.78, 45.12, -58.68)
CIE-LCHlch(27.78, 74.02, 307.55°)
OKLaboklab(39.75% 0.0582 -0.1687)
OKLCHoklch(39.75% 0.178 289)
XYZxyz(9.7193, 5.3751, 32.8665)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A279E #7B9E27
analogous
#273F9E #4A279E #85279E
triadic
#4A279E #9E4A27 #279E4A
tetradic
#4A279E #9E273F #7B9E27 #279E85
square
#4A279E #9E273F #7B9E27 #279E85
split-complementary
#4A279E #9E8527 #3F9E27
monochromatic
#1C0F3C #331B6D #4A279E #6235CD #8866D9

Accessibility & contrast

On white

10.12
#4A279E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4A279E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A279E
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A279E#FFFFFF#000000##FFFFFF
##4A279E1.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#2A4861
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4a279e;
/* rgb */ color: rgb(74, 39, 158);
/* oklch */ color: oklch(39.8% 0.178 289.0);
Tailwind
colors: {
  custom: {
    50: '#8665bc',
    500: '#4a279e',
    950: '#000000',
  },
}
SCSS
$custom: #4a279e;
$custom-light: #8665bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a279e",
  "rgb": {
    "r": 74,
    "g": 39,
    "b": 158
  },
  "hsl": {
    "h": 257.647,
    "s": 60.406,
    "l": 38.627
  },
  "oklch": {
    "l": 0.39753,
    "c": 0.17841,
    "h": 289
  },
  "luminance": 0.05376
}

Semantic roles & 50–950 ramp

primary
#4A279E
secondary
#A4BF62
accent
#E444B5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A279E

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

Preview Lab → · Contrast checker → · Palette generator →

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