#4A2FA7#4A2FA7

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

Color values

HEX#4A2FA7
RGBrgb(74, 47, 167)
HSLhsl(254, 56%, 42%)
HSVhsv(254, 72%, 65%)
CMYKcmyk(55.7%, 71.9%, 0%, 34.5%)
CIE-LABlab(30.10, 43.55, -60.32)
CIE-LCHlch(30.10, 74.40, 305.83°)
OKLaboklab(41.65% 0.0494 -0.1735)
OKLCHoklch(41.65% 0.18 285.9)
XYZxyz(10.8135, 6.2783, 37.1938)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2FA7 #8CA72F
analogous
#2F50A7 #4A2FA7 #862FA7
triadic
#4A2FA7 #A74A2F #2FA74A
tetradic
#4A2FA7 #A72F50 #8CA72F #2FA786
square
#4A2FA7 #A72F50 #8CA72F #2FA786
split-complementary
#4A2FA7 #A7862F #50A72F
monochromatic
#201447 #352277 #4A2FA7 #6548CB #8D78D9

Accessibility & contrast

On white

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

On black

2.26
#4A2FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4A2FA7#FFFFFF#000000##FFFFFF
##4A2FA71.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0043A5
Tritanopia (blue-blind)
#204F68
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4a2fa7;
/* rgb */ color: rgb(74, 47, 167);
/* oklch */ color: oklch(41.7% 0.180 285.9);
Tailwind
colors: {
  custom: {
    50: '#866ac2',
    500: '#4a2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #4a2fa7;
$custom-light: #866ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2fa7",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 253.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41653,
    "c": 0.1804,
    "h": 285.9
  },
  "luminance": 0.06279
}

Semantic roles & 50–950 ramp

primary
#4A2FA7
secondary
#AFC171
accent
#DF48BD
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4A2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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