#4A2EB7#4A2EB7

#4A2EB7 is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.0% C 0.201 H 283.4°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#4A2EB7
RGBrgb(74, 46, 183)
HSLhsl(252, 60%, 45%)
HSVhsv(252, 75%, 72%)
CMYKcmyk(59.6%, 74.9%, 0%, 28.2%)
CIE-LABlab(31.41, 48.86, -67.73)
CIE-LCHlch(31.41, 83.52, 305.80°)
OKLaboklab(43.03% 0.0465 -0.1952)
OKLCHoklch(43.03% 0.201 283.4)
XYZxyz(12.3456, 6.8279, 45.4579)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2EB7 #9BB72E
analogous
#2E56B7 #4A2EB7 #8F2EB7
triadic
#4A2EB7 #B74A2E #2EB74A
tetradic
#4A2EB7 #B72E56 #9BB72E #2EB78F
square
#4A2EB7 #B72E56 #9BB72E #2EB78F
split-complementary
#4A2EB7 #B78F2E #56B72E
monochromatic
#221555 #362286 #4A2EB7 #6A4FD3 #9480DF

Accessibility & contrast

On white

8.88
#4A2EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4A2EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2EB7
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2EB7#FFFFFF#000000##FFFFFF
##4A2EB71.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBB
Deuteranopia (green-blind)
#0045B4
Tritanopia (blue-blind)
#005570
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4a2eb7;
/* rgb */ color: rgb(74, 46, 183);
/* oklch */ color: oklch(43.0% 0.201 283.4);
Tailwind
colors: {
  custom: {
    50: '#896ace',
    500: '#4a2eb7',
    950: '#000000',
  },
}
SCSS
$custom: #4a2eb7;
$custom-light: #896ace;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2eb7",
  "rgb": {
    "r": 74,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 252.263,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43033,
    "c": 0.20068,
    "h": 283.4
  },
  "luminance": 0.06829
}

Semantic roles & 50–950 ramp

primary
#4A2EB7
secondary
#B8C879
accent
#E345C3
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4A2EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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