#4A2186#4A2186

#4A2186 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.157 H 296.3°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#4A2186
RGBrgb(74, 33, 134)
HSLhsl(264, 60%, 33%)
HSVhsv(264, 75%, 53%)
CMYKcmyk(44.8%, 75.4%, 0%, 47.5%)
CIE-LABlab(24.53, 41.38, -49.18)
CIE-LCHlch(24.53, 64.27, 310.07°)
OKLaboklab(36.79% 0.0695 -0.1408)
OKLCHoklch(36.79% 0.157 296.3)
XYZxyz(7.6698, 4.2646, 22.9687)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2186 #5D8621
analogous
#212B86 #4A2186 #7C2186
triadic
#4A2186 #864A21 #21864A
tetradic
#4A2186 #86212B #5D8621 #21867C
square
#4A2186 #86212B #5D8621 #21867C
split-complementary
#4A2186 #867C21 #2B8621
monochromatic
#140924 #2F1555 #4A2186 #652DB7 #844ED3

Accessibility & contrast

On white

11.33
#4A2186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4A2186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2186
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2186#FFFFFF#000000##FFFFFF
##4A21861.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003984
Tritanopia (blue-blind)
#3A3B51
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4a2186;
/* rgb */ color: rgb(74, 33, 134);
/* oklch */ color: oklch(36.8% 0.157 296.3);
Tailwind
colors: {
  custom: {
    50: '#8360aa',
    500: '#4a2186',
    950: '#000000',
  },
}
SCSS
$custom: #4a2186;
$custom-light: #8360aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2186",
  "rgb": {
    "r": 74,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 264.356,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36789,
    "c": 0.15698,
    "h": 296.3
  },
  "luminance": 0.04265
}

Semantic roles & 50–950 ramp

primary
#4A2186
secondary
#8BB74C
accent
#E444A3
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A2186

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

Preview Lab → · Contrast checker → · Palette generator →

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