#4A2EB6#4A2EB6

#4A2EB6 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.200 H 283.6°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#4A2EB6
RGBrgb(74, 46, 182)
HSLhsl(252, 60%, 45%)
HSVhsv(252, 75%, 71%)
CMYKcmyk(59.3%, 74.7%, 0%, 28.6%)
CIE-LABlab(31.32, 48.56, -67.30)
CIE-LCHlch(31.32, 82.99, 305.81°)
OKLaboklab(42.94% 0.0468 -0.1939)
OKLCHoklch(42.94% 0.2 283.6)
XYZxyz(12.2419, 6.7864, 44.9117)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2EB6 #9AB62E
analogous
#2E56B6 #4A2EB6 #8E2EB6
triadic
#4A2EB6 #B64A2E #2EB64A
tetradic
#4A2EB6 #B62E56 #9AB62E #2EB68E
square
#4A2EB6 #B62E56 #9AB62E #2EB68E
split-complementary
#4A2EB6 #B68E2E #56B62E
monochromatic
#221554 #362285 #4A2EB6 #6A4FD2 #9380DF

Accessibility & contrast

On white

8.91
#4A2EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4A2EB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2EB6
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2EB6#FFFFFF#000000##FFFFFF
##4A2EB61.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBA
Deuteranopia (green-blind)
#0045B3
Tritanopia (blue-blind)
#015470
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4a2eb6;
/* rgb */ color: rgb(74, 46, 182);
/* oklch */ color: oklch(42.9% 0.200 283.6);
Tailwind
colors: {
  custom: {
    50: '#896acd',
    500: '#4a2eb6',
    950: '#000000',
  },
}
SCSS
$custom: #4a2eb6;
$custom-light: #896acd;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2eb6",
  "rgb": {
    "r": 74,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 252.353,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42937,
    "c": 0.1995,
    "h": 283.6
  },
  "luminance": 0.06787
}

Semantic roles & 50–950 ramp

primary
#4A2EB6
secondary
#B7C878
accent
#E345C2
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4A2EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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