#4A2FB5#4A2FB5

#4A2FB5 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.197 H 283.6°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#4A2FB5
RGBrgb(74, 47, 181)
HSLhsl(252, 59%, 45%)
HSVhsv(252, 74%, 71%)
CMYKcmyk(59.1%, 74%, 0%, 29%)
CIE-LABlab(31.40, 47.74, -66.56)
CIE-LCHlch(31.40, 81.91, 305.65°)
OKLaboklab(42.97% 0.0463 -0.1918)
OKLCHoklch(42.97% 0.197 283.6)
XYZxyz(12.1785, 6.8243, 44.3826)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2FB5 #9AB52F
analogous
#2F57B5 #4A2FB5 #8D2FB5
triadic
#4A2FB5 #B54A2F #2FB54A
tetradic
#4A2FB5 #B52F57 #9AB52F #2FB58D
square
#4A2FB5 #B52F57 #9AB52F #2FB58D
split-complementary
#4A2FB5 #B58D2F #57B52F
monochromatic
#221654 #362284 #4A2FB5 #6A50D1 #9380DE

Accessibility & contrast

On white

8.88
#4A2FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4A2FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2FB5
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2FB5#FFFFFF#000000##FFFFFF
##4A2FB51.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB9
Deuteranopia (green-blind)
#0045B3
Tritanopia (blue-blind)
#04546F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4a2fb5;
/* rgb */ color: rgb(74, 47, 181);
/* oklch */ color: oklch(43.0% 0.197 283.6);
Tailwind
colors: {
  custom: {
    50: '#896bcc',
    500: '#4a2fb5',
    950: '#000000',
  },
}
SCSS
$custom: #4a2fb5;
$custom-light: #896bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2fb5",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 252.09,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4297,
    "c": 0.19729,
    "h": 283.6
  },
  "luminance": 0.06825
}

Semantic roles & 50–950 ramp

primary
#4A2FB5
secondary
#B7C779
accent
#E246C3
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4A2FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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