#4A2FA2#4A2FA2

#4A2FA2 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.174 H 286.8°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#4A2FA2
RGBrgb(74, 47, 162)
HSLhsl(254, 55%, 41%)
HSVhsv(254, 71%, 64%)
CMYKcmyk(54.3%, 71%, 0%, 36.5%)
CIE-LABlab(29.66, 42.05, -58.03)
CIE-LCHlch(29.66, 71.67, 305.93°)
OKLaboklab(41.2% 0.0504 -0.1668)
OKLCHoklch(41.2% 0.174 286.8)
XYZxyz(10.3602, 6.0970, 34.8063)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2FA2 #87A22F
analogous
#2F4DA2 #4A2FA2 #832FA2
triadic
#4A2FA2 #A24A2F #2FA24A
tetradic
#4A2FA2 #A22F4D #87A22F #2FA283
square
#4A2FA2 #A22F4D #87A22F #2FA283
split-complementary
#4A2FA2 #A2832F #4DA22F
monochromatic
#1F1343 #342173 #4A2FA2 #6445C9 #8C75D7

Accessibility & contrast

On white

9.46
#4A2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A2FA2
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2FA2#FFFFFF#000000##FFFFFF
##4A2FA21.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#0043A0
Tritanopia (blue-blind)
#264D65
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4a2fa2;
/* rgb */ color: rgb(74, 47, 162);
/* oklch */ color: oklch(41.2% 0.174 286.8);
Tailwind
colors: {
  custom: {
    50: '#866abf',
    500: '#4a2fa2',
    950: '#000000',
  },
}
SCSS
$custom: #4a2fa2;
$custom-light: #866abf;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2fa2",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 254.087,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41196,
    "c": 0.17425,
    "h": 286.8
  },
  "luminance": 0.06098
}

Semantic roles & 50–950 ramp

primary
#4A2FA2
secondary
#ACBF6E
accent
#DE49BB
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A2FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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