#4A2FB6#4A2FB6

#4A2FB6 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.198 H 283.4°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#4A2FB6
RGBrgb(74, 47, 182)
HSLhsl(252, 59%, 45%)
HSVhsv(252, 74%, 71%)
CMYKcmyk(59.3%, 74.2%, 0%, 28.6%)
CIE-LABlab(31.50, 48.04, -67.00)
CIE-LCHlch(31.50, 82.44, 305.64°)
OKLaboklab(43.07% 0.0461 -0.1931)
OKLCHoklch(43.07% 0.198 283.4)
XYZxyz(12.2814, 6.8655, 44.9249)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2FB6 #9BB62F
analogous
#2F58B6 #4A2FB6 #8E2FB6
triadic
#4A2FB6 #B64A2F #2FB64A
tetradic
#4A2FB6 #B62F58 #9BB62F #2FB68E
square
#4A2FB6 #B62F58 #9BB62F #2FB68E
split-complementary
#4A2FB6 #B68E2F #58B62F
monochromatic
#221655 #362285 #4A2FB6 #6A50D2 #9481DE

Accessibility & contrast

On white

8.85
#4A2FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A2FB6
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2FB6#FFFFFF#000000##FFFFFF
##4A2FB61.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBA
Deuteranopia (green-blind)
#0046B4
Tritanopia (blue-blind)
#015570
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4a2fb6;
/* rgb */ color: rgb(74, 47, 182);
/* oklch */ color: oklch(43.1% 0.198 283.4);
Tailwind
colors: {
  custom: {
    50: '#896bcd',
    500: '#4a2fb6',
    950: '#000000',
  },
}
SCSS
$custom: #4a2fb6;
$custom-light: #896bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2fb6",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 252,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43066,
    "c": 0.19849,
    "h": 283.4
  },
  "luminance": 0.06866
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4A2FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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