#4A279D#4A279D

#4A279D is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.177 H 289.2°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#4A279D
RGBrgb(74, 39, 157)
HSLhsl(258, 60%, 38%)
HSVhsv(258, 75%, 62%)
CMYKcmyk(52.9%, 75.2%, 0%, 38.4%)
CIE-LABlab(27.68, 44.83, -58.23)
CIE-LCHlch(27.68, 73.48, 307.59°)
OKLaboklab(39.66% 0.0584 -0.1673)
OKLCHoklch(39.66% 0.177 289.2)
XYZxyz(9.6336, 5.3408, 32.4150)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A279D #7A9D27
analogous
#273F9D #4A279D #85279D
triadic
#4A279D #9D4A27 #279D4A
tetradic
#4A279D #9D273F #7A9D27 #279D85
square
#4A279D #9D273F #7A9D27 #279D85
split-complementary
#4A279D #9D8527 #3F9D27
monochromatic
#1C0F3B #331B6C #4A279D #6235CD #8866D9

Accessibility & contrast

On white

10.15
#4A279D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4A279D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A279D
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A279D#FFFFFF#000000##FFFFFF
##4A279D1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#003E9B
Tritanopia (blue-blind)
#2B4760
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4a279d;
/* rgb */ color: rgb(74, 39, 157);
/* oklch */ color: oklch(39.7% 0.177 289.2);
Tailwind
colors: {
  custom: {
    50: '#8565bb',
    500: '#4a279d',
    950: '#000000',
  },
}
SCSS
$custom: #4a279d;
$custom-light: #8565bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4a279d",
  "rgb": {
    "r": 74,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 257.797,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39658,
    "c": 0.17724,
    "h": 289.2
  },
  "luminance": 0.05341
}

Semantic roles & 50–950 ramp

primary
#4A279D
secondary
#A3BF61
accent
#E344B4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A279D

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

Preview Lab → · Contrast checker → · Palette generator →

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