#4A2FB3#4A2FB3

#4A2FB3 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.195 H 283.9°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#4A2FB3
RGBrgb(74, 47, 179)
HSLhsl(252, 58%, 44%)
HSVhsv(252, 74%, 70%)
CMYKcmyk(58.7%, 73.7%, 0%, 29.8%)
CIE-LABlab(31.21, 47.15, -65.68)
CIE-LCHlch(31.21, 80.85, 305.67°)
OKLaboklab(42.78% 0.0468 -0.1892)
OKLCHoklch(42.78% 0.195 283.9)
XYZxyz(11.9747, 6.7428, 43.3096)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2FB3 #98B32F
analogous
#2F56B3 #4A2FB3 #8C2FB3
triadic
#4A2FB3 #B34A2F #2FB34A
tetradic
#4A2FB3 #B32F56 #98B32F #2FB38C
square
#4A2FB3 #B32F56 #98B32F #2FB38C
split-complementary
#4A2FB3 #B38C2F #56B32F
monochromatic
#221652 #362283 #4A2FB3 #694FD1 #927FDD

Accessibility & contrast

On white

8.94
#4A2FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4A2FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2FB3
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2FB3#FFFFFF#000000##FFFFFF
##4A2FB31.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB7
Deuteranopia (green-blind)
#0045B1
Tritanopia (blue-blind)
#0B546E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4a2fb3;
/* rgb */ color: rgb(74, 47, 179);
/* oklch */ color: oklch(42.8% 0.195 283.9);
Tailwind
colors: {
  custom: {
    50: '#896bcb',
    500: '#4a2fb3',
    950: '#000000',
  },
}
SCSS
$custom: #4a2fb3;
$custom-light: #896bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2fb3",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 252.273,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42778,
    "c": 0.19491,
    "h": 283.9
  },
  "luminance": 0.06744
}

Semantic roles & 50–950 ramp

primary
#4A2FB3
secondary
#B6C678
accent
#E246C2
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4A2FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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