#4A2A86#4A2A86

#4A2A86 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.0% C 0.146 H 294.4°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#4A2A86
RGBrgb(74, 42, 134)
HSLhsl(261, 52%, 35%)
HSVhsv(261, 69%, 53%)
CMYKcmyk(44.8%, 68.7%, 0%, 47.5%)
CIE-LABlab(26.25, 36.58, -46.37)
CIE-LCHlch(26.25, 59.06, 308.27°)
OKLaboklab(38.02% 0.0601 -0.1325)
OKLCHoklch(38.02% 0.146 294.4)
XYZxyz(7.9539, 4.8328, 23.0634)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2A86 #66862A
analogous
#2A3886 #4A2A86 #782A86
triadic
#4A2A86 #864A2A #2A864A
tetradic
#4A2A86 #862A38 #66862A #2A8678
square
#4A2A86 #862A38 #66862A #2A8678
split-complementary
#4A2A86 #86782A #38862A
monochromatic
#170D29 #301B57 #4A2A86 #6439B5 #845ECD

Accessibility & contrast

On white

10.68
#4A2A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A2A86
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2A86#FFFFFF#000000##FFFFFF
##4A2A861.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F89
Deuteranopia (green-blind)
#003D84
Tritanopia (blue-blind)
#394054
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4a2a86;
/* rgb */ color: rgb(74, 42, 134);
/* oklch */ color: oklch(38.0% 0.146 294.4);
Tailwind
colors: {
  custom: {
    50: '#8266aa',
    500: '#4a2a86',
    950: '#000000',
  },
}
SCSS
$custom: #4a2a86;
$custom-light: #8266aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2a86",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 134
  },
  "hsl": {
    "h": 260.87,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38019,
    "c": 0.14555,
    "h": 294.4
  },
  "luminance": 0.04833
}

Semantic roles & 50–950 ramp

primary
#4A2A86
secondary
#93B25A
accent
#DC4CAA
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4A2A86

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

Preview Lab → · Contrast checker → · Palette generator →

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