#4A2EB1#4A2EB1

#4A2EB1 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.194 H 284.3°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#4A2EB1
RGBrgb(74, 46, 177)
HSLhsl(253, 59%, 44%)
HSVhsv(253, 74%, 69%)
CMYKcmyk(58.2%, 74%, 0%, 30.6%)
CIE-LABlab(30.84, 47.08, -65.11)
CIE-LCHlch(30.84, 80.34, 305.87°)
OKLaboklab(42.46% 0.048 -0.1875)
OKLCHoklch(42.46% 0.194 284.3)
XYZxyz(11.7344, 6.5834, 42.2388)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2EB1 #95B12E
analogous
#2E54B1 #4A2EB1 #8B2EB1
triadic
#4A2EB1 #B14A2E #2EB14A
tetradic
#4A2EB1 #B12E54 #95B12E #2EB18B
square
#4A2EB1 #B12E54 #95B12E #2EB18B
split-complementary
#4A2EB1 #B18B2E #54B12E
monochromatic
#211550 #362180 #4A2EB1 #684CD0 #917CDD

Accessibility & contrast

On white

9.06
#4A2EB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4A2EB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2EB1
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2EB1#FFFFFF#000000##FFFFFF
##4A2EB11.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB5
Deuteranopia (green-blind)
#0044AF
Tritanopia (blue-blind)
#10526D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4a2eb1;
/* rgb */ color: rgb(74, 46, 177);
/* oklch */ color: oklch(42.5% 0.194 284.3);
Tailwind
colors: {
  custom: {
    50: '#886ac9',
    500: '#4a2eb1',
    950: '#000000',
  },
}
SCSS
$custom: #4a2eb1;
$custom-light: #886ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2eb1",
  "rgb": {
    "r": 74,
    "g": 46,
    "b": 177
  },
  "hsl": {
    "h": 252.824,
    "s": 58.744,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42456,
    "c": 0.19357,
    "h": 284.3
  },
  "luminance": 0.06584
}

Semantic roles & 50–950 ramp

primary
#4A2EB1
secondary
#B4C675
accent
#E246C1
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4A2EB1

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

Preview Lab → · Contrast checker → · Palette generator →

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