#4A2EB5#4A2EB5

#4A2EB5 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.198 H 283.7°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#4A2EB5
RGBrgb(74, 46, 181)
HSLhsl(252, 59%, 45%)
HSVhsv(252, 75%, 71%)
CMYKcmyk(59.1%, 74.6%, 0%, 29%)
CIE-LABlab(31.22, 48.26, -66.86)
CIE-LCHlch(31.22, 82.46, 305.82°)
OKLaboklab(42.84% 0.047 -0.1927)
OKLCHoklch(42.84% 0.198 283.7)
XYZxyz(12.1390, 6.7452, 44.3694)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2EB5 #99B52E
analogous
#2E56B5 #4A2EB5 #8D2EB5
triadic
#4A2EB5 #B54A2E #2EB54A
tetradic
#4A2EB5 #B52E56 #99B52E #2EB58D
square
#4A2EB5 #B52E56 #99B52E #2EB58D
split-complementary
#4A2EB5 #B58D2E #56B52E
monochromatic
#221553 #362284 #4A2EB5 #6A4ED2 #937FDE

Accessibility & contrast

On white

8.94
#4A2EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4A2EB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2EB5
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2EB5#FFFFFF#000000##FFFFFF
##4A2EB51.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB9
Deuteranopia (green-blind)
#0045B3
Tritanopia (blue-blind)
#04546F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4a2eb5;
/* rgb */ color: rgb(74, 46, 181);
/* oklch */ color: oklch(42.8% 0.198 283.7);
Tailwind
colors: {
  custom: {
    50: '#896acc',
    500: '#4a2eb5',
    950: '#000000',
  },
}
SCSS
$custom: #4a2eb5;
$custom-light: #896acc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2eb5",
  "rgb": {
    "r": 74,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 252.444,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4284,
    "c": 0.19831,
    "h": 283.7
  },
  "luminance": 0.06746
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4A2EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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