#4A2FAC#4A2FAC

#4A2FAC is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.186 H 285.0°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#4A2FAC
RGBrgb(74, 47, 172)
HSLhsl(253, 57%, 43%)
HSVhsv(253, 73%, 67%)
CMYKcmyk(57%, 72.7%, 0%, 32.5%)
CIE-LABlab(30.56, 45.05, -62.57)
CIE-LCHlch(30.56, 77.11, 305.75°)
OKLaboklab(42.12% 0.0483 -0.1801)
OKLCHoklch(42.12% 0.186 285)
XYZxyz(11.2847, 6.4668, 39.6753)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2FAC #91AC2F
analogous
#2F52AC #4A2FAC #882FAC
triadic
#4A2FAC #AC4A2F #2FAC4A
tetradic
#4A2FAC #AC2F52 #91AC2F #2FAC88
square
#4A2FAC #AC2F52 #91AC2F #2FAC88
split-complementary
#4A2FAC #AC882F #52AC2F
monochromatic
#21154C #35227C #4A2FAC #674BCE #8F7BDB

Accessibility & contrast

On white

9.16
#4A2FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4A2FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2FAC
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2FAC#FFFFFF#000000##FFFFFF
##4A2FAC1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#0044AA
Tritanopia (blue-blind)
#1A516A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4a2fac;
/* rgb */ color: rgb(74, 47, 172);
/* oklch */ color: oklch(42.1% 0.186 285.0);
Tailwind
colors: {
  custom: {
    50: '#876ac6',
    500: '#4a2fac',
    950: '#000000',
  },
}
SCSS
$custom: #4a2fac;
$custom-light: #876ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2fac",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 252.96,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42117,
    "c": 0.18649,
    "h": 285
  },
  "luminance": 0.06467
}

Semantic roles & 50–950 ramp

primary
#4A2FAC
secondary
#B2C374
accent
#E047BF
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4A2FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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