#4A2286#4A2286

#4A2286 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.156 H 296.1°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#4A2286
RGBrgb(74, 34, 134)
HSLhsl(264, 60%, 33%)
HSVhsv(264, 75%, 53%)
CMYKcmyk(44.8%, 74.6%, 0%, 47.5%)
CIE-LABlab(24.71, 40.88, -48.89)
CIE-LCHlch(24.71, 63.73, 309.90°)
OKLaboklab(36.92% 0.0685 -0.1399)
OKLCHoklch(36.92% 0.156 296.1)
XYZxyz(7.6980, 4.3210, 22.9781)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2286 #5E8622
analogous
#222C86 #4A2286 #7C2286
triadic
#4A2286 #864A22 #22864A
tetradic
#4A2286 #86222C #5E8622 #22867C
square
#4A2286 #86222C #5E8622 #22867C
split-complementary
#4A2286 #867C22 #2C8622
monochromatic
#140924 #2F1655 #4A2286 #652EB7 #8450D3

Accessibility & contrast

On white

11.26
#4A2286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4A2286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2286
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2286#FFFFFF#000000##FFFFFF
##4A22861.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a2286;
/* rgb */ color: rgb(74, 34, 134);
/* oklch */ color: oklch(36.9% 0.156 296.1);
Tailwind
colors: {
  custom: {
    50: '#8361aa',
    500: '#4a2286',
    950: '#000000',
  },
}
SCSS
$custom: #4a2286;
$custom-light: #8361aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2286",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 264,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36915,
    "c": 0.1558,
    "h": 296.1
  },
  "luminance": 0.04321
}

Semantic roles & 50–950 ramp

primary
#4A2286
secondary
#8CB64E
accent
#E345A4
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A2286

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

Preview Lab → · Contrast checker → · Palette generator →

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