#4A2DAB#4A2DAB

#4A2DAB is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.187 H 285.5°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#4A2DAB
RGBrgb(74, 45, 171)
HSLhsl(254, 58%, 42%)
HSVhsv(254, 74%, 67%)
CMYKcmyk(56.7%, 73.7%, 0%, 32.9%)
CIE-LABlab(30.09, 45.82, -62.75)
CIE-LCHlch(30.09, 77.70, 306.14°)
OKLaboklab(41.75% 0.0501 -0.1806)
OKLCHoklch(41.75% 0.187 285.5)
XYZxyz(11.1109, 6.2722, 39.1454)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2DAB #8EAB2D
analogous
#2D4FAB #4A2DAB #892DAB
triadic
#4A2DAB #AB4A2D #2DAB4A
tetradic
#4A2DAB #AB2D4F #8EAB2D #2DAB89
square
#4A2DAB #AB2D4F #8EAB2D #2DAB89
split-complementary
#4A2DAB #AB892D #4FAB2D
monochromatic
#20144A #35207B #4A2DAB #6647CE #8E77DB

Accessibility & contrast

On white

9.31
#4A2DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4A2DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2DAB
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2DAB#FFFFFF#000000##FFFFFF
##4A2DAB1.009.312.259.31
#FFFFFF9.311.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAF
Deuteranopia (green-blind)
#0043A9
Tritanopia (blue-blind)
#1B4F69
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4a2dab;
/* rgb */ color: rgb(74, 45, 171);
/* oklch */ color: oklch(41.8% 0.187 285.5);
Tailwind
colors: {
  custom: {
    50: '#8769c5',
    500: '#4a2dab',
    950: '#000000',
  },
}
SCSS
$custom: #4a2dab;
$custom-light: #8769c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2dab",
  "rgb": {
    "r": 74,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 253.81,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41754,
    "c": 0.18745,
    "h": 285.5
  },
  "luminance": 0.06273
}

Semantic roles & 50–950 ramp

primary
#4A2DAB
secondary
#B0C371
accent
#E246BE
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4A2DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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