#4A2FAD#4A2FAD

#4A2FAD is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.188 H 284.8°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#4A2FAD
RGBrgb(74, 47, 173)
HSLhsl(253, 57%, 43%)
HSVhsv(253, 73%, 68%)
CMYKcmyk(57.2%, 72.8%, 0%, 32.2%)
CIE-LABlab(30.65, 45.35, -63.02)
CIE-LCHlch(30.65, 77.64, 305.74°)
OKLaboklab(42.21% 0.0481 -0.1814)
OKLCHoklch(42.21% 0.188 284.8)
XYZxyz(11.3811, 6.5053, 40.1830)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2FAD #92AD2F
analogous
#2F53AD #4A2FAD #892FAD
triadic
#4A2FAD #AD4A2F #2FAD4A
tetradic
#4A2FAD #AD2F53 #92AD2F #2FAD89
square
#4A2FAD #AD2F53 #92AD2F #2FAD89
split-complementary
#4A2FAD #AD892F #53AD2F
monochromatic
#21154D #35227D #4A2FAD #674BCE #907BDB

Accessibility & contrast

On white

9.13
#4A2FAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#4A2FAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2FAD
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2FAD#FFFFFF#000000##FFFFFF
##4A2FAD1.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB1
Deuteranopia (green-blind)
#0044AB
Tritanopia (blue-blind)
#18516B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4a2fad;
/* rgb */ color: rgb(74, 47, 173);
/* oklch */ color: oklch(42.2% 0.188 284.8);
Tailwind
colors: {
  custom: {
    50: '#876ac7',
    500: '#4a2fad',
    950: '#000000',
  },
}
SCSS
$custom: #4a2fad;
$custom-light: #876ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2fad",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 173
  },
  "hsl": {
    "h": 252.857,
    "s": 57.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42211,
    "c": 0.1877,
    "h": 284.8
  },
  "luminance": 0.06506
}

Semantic roles & 50–950 ramp

primary
#4A2FAD
secondary
#B3C474
accent
#E147C0
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4A2FAD

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

Preview Lab → · Contrast checker → · Palette generator →

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