#4A2A87#4A2A87

#4A2A87 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.1% C 0.147 H 294.1°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#4A2A87
RGBrgb(74, 42, 135)
HSLhsl(261, 53%, 35%)
HSVhsv(261, 69%, 53%)
CMYKcmyk(45.2%, 68.9%, 0%, 47.1%)
CIE-LABlab(26.33, 36.87, -46.86)
CIE-LCHlch(26.33, 59.63, 308.19°)
OKLaboklab(38.1% 0.06 -0.134)
OKLCHoklch(38.1% 0.147 294.1)
XYZxyz(8.0240, 4.8608, 23.4324)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2A87 #67872A
analogous
#2A3987 #4A2A87 #782A87
triadic
#4A2A87 #874A2A #2A874A
tetradic
#4A2A87 #872A39 #67872A #2A8778
square
#4A2A87 #872A39 #67872A #2A8778
split-complementary
#4A2A87 #87782A #39872A
monochromatic
#170D2A #301B58 #4A2A87 #6439B6 #845ECD

Accessibility & contrast

On white

10.65
#4A2A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4A2A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2A87
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2A87#FFFFFF#000000##FFFFFF
##4A2A871.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#394055
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4a2a87;
/* rgb */ color: rgb(74, 42, 135);
/* oklch */ color: oklch(38.1% 0.147 294.1);
Tailwind
colors: {
  custom: {
    50: '#8266ab',
    500: '#4a2a87',
    950: '#000000',
  },
}
SCSS
$custom: #4a2a87;
$custom-light: #8266ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2a87",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 260.645,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38103,
    "c": 0.14681,
    "h": 294.1
  },
  "luminance": 0.04861
}

Semantic roles & 50–950 ramp

primary
#4A2A87
secondary
#94B35A
accent
#DC4CAA
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4A2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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