#4A2C98#4A2C98

#4A2C98 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.9% C 0.165 H 289.4°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#4A2C98
RGBrgb(74, 44, 152)
HSLhsl(257, 55%, 38%)
HSVhsv(257, 71%, 60%)
CMYKcmyk(51.3%, 71.1%, 0%, 40.4%)
CIE-LABlab(28.18, 40.73, -54.36)
CIE-LCHlch(28.18, 67.93, 306.84°)
OKLaboklab(39.87% 0.0551 -0.156)
OKLCHoklch(39.87% 0.165 289.4)
XYZxyz(9.3906, 5.5238, 30.2711)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2C98 #7A982C
analogous
#2C4498 #4A2C98 #802C98
triadic
#4A2C98 #984A2C #2C984A
tetradic
#4A2C98 #982C44 #7A982C #2C9880
square
#4A2C98 #982C44 #7A982C #2C9880
split-complementary
#4A2C98 #98802C #44982C
monochromatic
#1C1139 #331E69 #4A2C98 #623BC6 #886AD4

Accessibility & contrast

On white

9.98
#4A2C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4A2C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2C98
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2C98#FFFFFF#000000##FFFFFF
##4A2C981.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#2F485E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4a2c98;
/* rgb */ color: rgb(74, 44, 152);
/* oklch */ color: oklch(39.9% 0.165 289.4);
Tailwind
colors: {
  custom: {
    50: '#8468b7',
    500: '#4a2c98',
    950: '#000000',
  },
}
SCSS
$custom: #4a2c98;
$custom-light: #8468b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2c98",
  "rgb": {
    "r": 74,
    "g": 44,
    "b": 152
  },
  "hsl": {
    "h": 256.667,
    "s": 55.102,
    "l": 38.431
  },
  "oklch": {
    "l": 0.3987,
    "c": 0.16546,
    "h": 289.4
  },
  "luminance": 0.05524
}

Semantic roles & 50–950 ramp

primary
#4A2C98
secondary
#A3BB65
accent
#DE49B5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4A2C98

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

Preview Lab → · Contrast checker → · Palette generator →

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