#4A279B#4A279B

#4A279B is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.175 H 289.7°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#4A279B
RGBrgb(74, 39, 155)
HSLhsl(258, 60%, 38%)
HSVhsv(258, 75%, 61%)
CMYKcmyk(52.3%, 74.8%, 0%, 39.2%)
CIE-LABlab(27.50, 44.25, -57.31)
CIE-LCHlch(27.50, 72.41, 307.68°)
OKLaboklab(39.47% 0.0589 -0.1646)
OKLCHoklch(39.47% 0.175 289.7)
XYZxyz(9.4642, 5.2730, 31.5231)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A279B #789B27
analogous
#273E9B #4A279B #84279B
triadic
#4A279B #9B4A27 #279B4A
tetradic
#4A279B #9B273E #789B27 #279B84
square
#4A279B #9B273E #789B27 #279B84
split-complementary
#4A279B #9B8427 #3E9B27
monochromatic
#1B0E39 #331B6A #4A279B #6133CC #8764D8

Accessibility & contrast

On white

10.22
#4A279B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4A279B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A279B
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A279B#FFFFFF#000000##FFFFFF
##4A279B1.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#003E99
Tritanopia (blue-blind)
#2D465F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4a279b;
/* rgb */ color: rgb(74, 39, 155);
/* oklch */ color: oklch(39.5% 0.175 289.7);
Tailwind
colors: {
  custom: {
    50: '#8565b9',
    500: '#4a279b',
    950: '#000000',
  },
}
SCSS
$custom: #4a279b;
$custom-light: #8565b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a279b",
  "rgb": {
    "r": 74,
    "g": 39,
    "b": 155
  },
  "hsl": {
    "h": 258.103,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39471,
    "c": 0.17487,
    "h": 289.7
  },
  "luminance": 0.05273
}

Semantic roles & 50–950 ramp

primary
#4A279B
secondary
#A2BE60
accent
#E345B3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A279B

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

Preview Lab → · Contrast checker → · Palette generator →

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