#4A2EB4#4A2EB4

#4A2EB4 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.197 H 283.9°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#4A2EB4
RGBrgb(74, 46, 180)
HSLhsl(253, 59%, 44%)
HSVhsv(253, 74%, 71%)
CMYKcmyk(58.9%, 74.4%, 0%, 29.4%)
CIE-LABlab(31.12, 47.97, -66.43)
CIE-LCHlch(31.12, 81.93, 305.83°)
OKLaboklab(42.74% 0.0473 -0.1914)
OKLCHoklch(42.74% 0.197 283.9)
XYZxyz(12.0367, 6.7044, 43.8310)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2EB4 #98B42E
analogous
#2E55B4 #4A2EB4 #8D2EB4
triadic
#4A2EB4 #B44A2E #2EB44A
tetradic
#4A2EB4 #B42E55 #98B42E #2EB48D
square
#4A2EB4 #B42E55 #98B42E #2EB48D
split-complementary
#4A2EB4 #B48D2E #55B42E
monochromatic
#221553 #362283 #4A2EB4 #694ED2 #927EDE

Accessibility & contrast

On white

8.97
#4A2EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4A2EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2EB4
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2EB4#FFFFFF#000000##FFFFFF
##4A2EB41.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB8
Deuteranopia (green-blind)
#0045B2
Tritanopia (blue-blind)
#08536F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4a2eb4;
/* rgb */ color: rgb(74, 46, 180);
/* oklch */ color: oklch(42.7% 0.197 283.9);
Tailwind
colors: {
  custom: {
    50: '#896acc',
    500: '#4a2eb4',
    950: '#000000',
  },
}
SCSS
$custom: #4a2eb4;
$custom-light: #896acc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2eb4",
  "rgb": {
    "r": 74,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 252.537,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42744,
    "c": 0.19713,
    "h": 283.9
  },
  "luminance": 0.06705
}

Semantic roles & 50–950 ramp

primary
#4A2EB4
secondary
#B6C777
accent
#E245C2
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4A2EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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