#4A287C#4A287C

#4A287C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.9% C 0.136 H 298.0°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#4A287C
RGBrgb(74, 40, 124)
HSLhsl(264, 51%, 32%)
HSVhsv(264, 68%, 49%)
CMYKcmyk(40.3%, 67.7%, 0%, 51.4%)
CIE-LABlab(25.04, 34.86, -42.05)
CIE-LCHlch(25.04, 54.62, 309.66°)
OKLaboklab(36.9% 0.0637 -0.1198)
OKLCHoklch(36.9% 0.136 298)
XYZxyz(7.2200, 4.4286, 19.5393)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A287C #5A7C28
analogous
#28307C #4A287C #74287C
triadic
#4A287C #7C4A28 #287C4A
tetradic
#4A287C #7C2830 #5A7C28 #287C74
square
#4A287C #7C2830 #5A7C28 #287C74
split-complementary
#4A287C #7C7428 #307C28
monochromatic
#130A1F #2E194E #4A287C #6637AA #8456C8

Accessibility & contrast

On white

11.14
#4A287C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4A287C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A287C
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A287C#FFFFFF#000000##FFFFFF
##4A287C1.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7F
Deuteranopia (green-blind)
#003A7A
Tritanopia (blue-blind)
#3E3B4E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4a287c;
/* rgb */ color: rgb(74, 40, 124);
/* oklch */ color: oklch(36.9% 0.136 298.0);
Tailwind
colors: {
  custom: {
    50: '#8164a3',
    500: '#4a287c',
    950: '#000000',
  },
}
SCSS
$custom: #4a287c;
$custom-light: #8164a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a287c",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 124
  },
  "hsl": {
    "h": 264.286,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36895,
    "c": 0.13572,
    "h": 298
  },
  "luminance": 0.04429
}

Semantic roles & 50–950 ramp

primary
#4A287C
secondary
#89AD52
accent
#DB4DA1
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4A287C

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

Preview Lab → · Contrast checker → · Palette generator →

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