#4A2FA5#4A2FA5

#4A2FA5 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.178 H 286.2°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#4A2FA5
RGBrgb(74, 47, 165)
HSLhsl(254, 56%, 42%)
HSVhsv(254, 72%, 65%)
CMYKcmyk(55.2%, 71.5%, 0%, 35.3%)
CIE-LABlab(29.92, 42.95, -59.41)
CIE-LCHlch(29.92, 73.31, 305.87°)
OKLaboklab(41.47% 0.0498 -0.1708)
OKLCHoklch(41.47% 0.178 286.2)
XYZxyz(10.6301, 6.2049, 36.2276)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2FA5 #8AA52F
analogous
#2F4FA5 #4A2FA5 #852FA5
triadic
#4A2FA5 #A54A2F #2FA54A
tetradic
#4A2FA5 #A52F4F #8AA52F #2FA585
square
#4A2FA5 #A52F4F #8AA52F #2FA585
split-complementary
#4A2FA5 #A5852F #4FA52F
monochromatic
#1F1446 #352175 #4A2FA5 #6547CB #8D76D8

Accessibility & contrast

On white

9.37
#4A2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4A2FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2FA5
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2FA5#FFFFFF#000000##FFFFFF
##4A2FA51.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A9
Deuteranopia (green-blind)
#0043A3
Tritanopia (blue-blind)
#234E67
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4a2fa5;
/* rgb */ color: rgb(74, 47, 165);
/* oklch */ color: oklch(41.5% 0.178 286.2);
Tailwind
colors: {
  custom: {
    50: '#866ac1',
    500: '#4a2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #4a2fa5;
$custom-light: #866ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2fa5",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 253.729,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41469,
    "c": 0.17794,
    "h": 286.2
  },
  "luminance": 0.06205
}

Semantic roles & 50–950 ramp

primary
#4A2FA5
secondary
#AEC070
accent
#DF49BD
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4A2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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