#4A2CB1#4A2CB1

#4A2CB1 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.196 H 284.6°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#4A2CB1
RGBrgb(74, 44, 177)
HSLhsl(254, 60%, 43%)
HSVhsv(254, 75%, 69%)
CMYKcmyk(58.2%, 75.1%, 0%, 30.6%)
CIE-LABlab(30.47, 48.11, -65.71)
CIE-LCHlch(30.47, 81.43, 306.21°)
OKLaboklab(42.2% 0.0494 -0.1893)
OKLCHoklch(42.2% 0.196 284.6)
XYZxyz(11.6581, 6.4308, 42.2134)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2CB1 #93B12C
analogous
#2C50B1 #4A2CB1 #8C2CB1
triadic
#4A2CB1 #B14A2C #2CB14A
tetradic
#4A2CB1 #B12C50 #93B12C #2CB18C
square
#4A2CB1 #B12C50 #93B12C #2CB18C
split-complementary
#4A2CB1 #B18C2C #50B12C
monochromatic
#21144F #362080 #4A2CB1 #6749D2 #907ADE

Accessibility & contrast

On white

9.18
#4A2CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4A2CB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2CB1
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2CB1#FFFFFF#000000##FFFFFF
##4A2CB11.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#0044AF
Tritanopia (blue-blind)
#11516C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4a2cb1;
/* rgb */ color: rgb(74, 44, 177);
/* oklch */ color: oklch(42.2% 0.196 284.6);
Tailwind
colors: {
  custom: {
    50: '#8869c9',
    500: '#4a2cb1',
    950: '#000000',
  },
}
SCSS
$custom: #4a2cb1;
$custom-light: #8869c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2cb1",
  "rgb": {
    "r": 74,
    "g": 44,
    "b": 177
  },
  "hsl": {
    "h": 253.534,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42199,
    "c": 0.19562,
    "h": 284.6
  },
  "luminance": 0.06432
}

Semantic roles & 50–950 ramp

primary
#4A2CB1
secondary
#B3C673
accent
#E344BF
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4A2CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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