#4A2B9C#4A2B9C

#4A2B9C is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.1% C 0.172 H 288.8°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#4A2B9C
RGBrgb(74, 43, 156)
HSLhsl(256, 57%, 39%)
HSVhsv(256, 72%, 61%)
CMYKcmyk(52.6%, 72.4%, 0%, 38.8%)
CIE-LABlab(28.34, 42.45, -56.55)
CIE-LCHlch(28.34, 70.71, 306.89°)
OKLaboklab(40.09% 0.0552 -0.1624)
OKLCHoklch(40.09% 0.172 288.8)
XYZxyz(9.6869, 5.5835, 32.0133)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2B9C #7D9C2B
analogous
#2B459C #4A2B9C #832B9C
triadic
#4A2B9C #9C4A2B #2B9C4A
tetradic
#4A2B9C #9C2B45 #7D9C2B #2B9C83
square
#4A2B9C #9C2B45 #7D9C2B #2B9C83
split-complementary
#4A2B9C #9C832B #459C2B
monochromatic
#1C113C #331E6C #4A2B9C #623BC9 #896BD6

Accessibility & contrast

On white

9.92
#4A2B9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4A2B9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2B9C
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2B9C#FFFFFF#000000##FFFFFF
##4A2B9C1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#00409A
Tritanopia (blue-blind)
#2C4960
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4a2b9c;
/* rgb */ color: rgb(74, 43, 156);
/* oklch */ color: oklch(40.1% 0.172 288.8);
Tailwind
colors: {
  custom: {
    50: '#8567ba',
    500: '#4a2b9c',
    950: '#000000',
  },
}
SCSS
$custom: #4a2b9c;
$custom-light: #8567ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2b9c",
  "rgb": {
    "r": 74,
    "g": 43,
    "b": 156
  },
  "hsl": {
    "h": 256.46,
    "s": 56.784,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40092,
    "c": 0.17155,
    "h": 288.8
  },
  "luminance": 0.05584
}

Semantic roles & 50–950 ramp

primary
#4A2B9C
secondary
#A5BD66
accent
#E048B6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A2B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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