#4A2DA8#4A2DA8

#4A2DA8 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.184 H 286.0°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#4A2DA8
RGBrgb(74, 45, 168)
HSLhsl(254, 58%, 42%)
HSVhsv(254, 73%, 66%)
CMYKcmyk(56%, 73.2%, 0%, 34.1%)
CIE-LABlab(29.81, 44.93, -61.40)
CIE-LCHlch(29.81, 76.08, 306.19°)
OKLaboklab(41.47% 0.0508 -0.1767)
OKLCHoklch(41.47% 0.184 286)
XYZxyz(10.8282, 6.1592, 37.6565)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2DA8 #8BA82D
analogous
#2D4EA8 #4A2DA8 #882DA8
triadic
#4A2DA8 #A84A2D #2DA84A
tetradic
#4A2DA8 #A82D4E #8BA82D #2DA888
square
#4A2DA8 #A82D4E #8BA82D #2DA888
split-complementary
#4A2DA8 #A8882D #4EA82D
monochromatic
#1F1347 #352078 #4A2DA8 #6545CD #8D75DA

Accessibility & contrast

On white

9.41
#4A2DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4A2DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2DA8
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2DA8#FFFFFF#000000##FFFFFF
##4A2DA81.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AC
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#1F4E68
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4a2da8;
/* rgb */ color: rgb(74, 45, 168);
/* oklch */ color: oklch(41.5% 0.184 286.0);
Tailwind
colors: {
  custom: {
    50: '#8769c3',
    500: '#4a2da8',
    950: '#000000',
  },
}
SCSS
$custom: #4a2da8;
$custom-light: #8769c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2da8",
  "rgb": {
    "r": 74,
    "g": 45,
    "b": 168
  },
  "hsl": {
    "h": 254.146,
    "s": 57.746,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41472,
    "c": 0.18384,
    "h": 286
  },
  "luminance": 0.0616
}

Semantic roles & 50–950 ramp

primary
#4A2DA8
secondary
#AEC26F
accent
#E147BD
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4A2DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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