#4A279F#4A279F

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

Color values

HEX#4A279F
RGBrgb(74, 39, 159)
HSLhsl(258, 61%, 39%)
HSVhsv(258, 75%, 62%)
CMYKcmyk(53.5%, 75.5%, 0%, 37.6%)
CIE-LABlab(27.87, 45.40, -59.14)
CIE-LCHlch(27.87, 74.56, 307.52°)
OKLaboklab(39.85% 0.0579 -0.17)
OKLCHoklch(39.85% 0.18 288.8)
XYZxyz(9.8057, 5.4096, 33.3216)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A279F #7C9F27
analogous
#27409F #4A279F #86279F
triadic
#4A279F #9F4A27 #279F4A
tetradic
#4A279F #9F2740 #7C9F27 #279F86
square
#4A279F #9F2740 #7C9F27 #279F86
split-complementary
#4A279F #9F8627 #409F27
monochromatic
#1C0F3D #331B6E #4A279F #6236CE #8867DA

Accessibility & contrast

On white

10.09
#4A279F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A279F
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A279F#FFFFFF#000000##FFFFFF
##4A279F1.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#294861
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4a279f;
/* rgb */ color: rgb(74, 39, 159);
/* oklch */ color: oklch(39.8% 0.180 288.8);
Tailwind
colors: {
  custom: {
    50: '#8665bc',
    500: '#4a279f',
    950: '#000000',
  },
}
SCSS
$custom: #4a279f;
$custom-light: #8665bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a279f",
  "rgb": {
    "r": 74,
    "g": 39,
    "b": 159
  },
  "hsl": {
    "h": 257.5,
    "s": 60.606,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39847,
    "c": 0.1796,
    "h": 288.8
  },
  "luminance": 0.0541
}

Semantic roles & 50–950 ramp

primary
#4A279F
secondary
#A4C062
accent
#E444B5
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A279F

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

Preview Lab → · Contrast checker → · Palette generator →

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