#4A2DA7#4A2DA7

#4A2DA7 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.183 H 286.2°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#4A2DA7
RGBrgb(74, 45, 167)
HSLhsl(254, 58%, 42%)
HSVhsv(254, 73%, 65%)
CMYKcmyk(55.7%, 73.1%, 0%, 34.5%)
CIE-LABlab(29.72, 44.63, -60.95)
CIE-LCHlch(29.72, 75.54, 306.21°)
OKLaboklab(41.38% 0.0511 -0.1754)
OKLCHoklch(41.38% 0.183 286.2)
XYZxyz(10.7354, 6.1220, 37.1677)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2DA7 #8AA72D
analogous
#2D4DA7 #4A2DA7 #872DA7
triadic
#4A2DA7 #A74A2D #2DA74A
tetradic
#4A2DA7 #A72D4D #8AA72D #2DA787
square
#4A2DA7 #A72D4D #8AA72D #2DA787
split-complementary
#4A2DA7 #A7872D #4DA72D
monochromatic
#1F1347 #352077 #4A2DA7 #6544CD #8D75DA

Accessibility & contrast

On white

9.44
#4A2DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4A2DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2DA7
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2DA7#FFFFFF#000000##FFFFFF
##4A2DA71.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AB
Deuteranopia (green-blind)
#0042A5
Tritanopia (blue-blind)
#214E67
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4a2da7;
/* rgb */ color: rgb(74, 45, 167);
/* oklch */ color: oklch(41.4% 0.183 286.2);
Tailwind
colors: {
  custom: {
    50: '#8769c2',
    500: '#4a2da7',
    950: '#000000',
  },
}
SCSS
$custom: #4a2da7;
$custom-light: #8769c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2da7",
  "rgb": {
    "r": 74,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 254.262,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41379,
    "c": 0.18264,
    "h": 286.2
  },
  "luminance": 0.06123
}

Semantic roles & 50–950 ramp

primary
#4A2DA7
secondary
#AEC16E
accent
#E147BC
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4A2DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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