#4A239A#4A239A

#4A239A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.178 H 290.6°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#4A239A
RGBrgb(74, 35, 154)
HSLhsl(260, 63%, 37%)
HSVhsv(260, 77%, 60%)
CMYKcmyk(51.9%, 77.3%, 0%, 39.6%)
CIE-LABlab(26.71, 45.95, -58.00)
CIE-LCHlch(26.71, 73.99, 308.39°)
OKLaboklab(38.89% 0.0625 -0.1666)
OKLCHoklch(38.89% 0.178 290.6)
XYZxyz(9.2561, 4.9906, 31.0412)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A239A #739A23
analogous
#23379A #4A239A #86239A
triadic
#4A239A #9A4A23 #239A4A
tetradic
#4A239A #9A2337 #739A23 #239A86
square
#4A239A #9A2337 #739A23 #239A86
split-complementary
#4A239A #9A8623 #379A23
monochromatic
#1A0C36 #321868 #4A239A #622ECC #865DDA

Accessibility & contrast

On white

10.51
#4A239A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4A239A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A239A
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A239A#FFFFFF#000000##FFFFFF
##4A239A1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419D
Deuteranopia (green-blind)
#003C98
Tritanopia (blue-blind)
#2E445D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4a239a;
/* rgb */ color: rgb(74, 35, 154);
/* oklch */ color: oklch(38.9% 0.178 290.6);
Tailwind
colors: {
  custom: {
    50: '#8563b9',
    500: '#4a239a',
    950: '#000000',
  },
}
SCSS
$custom: #4a239a;
$custom-light: #8563b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a239a",
  "rgb": {
    "r": 74,
    "g": 35,
    "b": 154
  },
  "hsl": {
    "h": 259.664,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.38886,
    "c": 0.17796,
    "h": 290.6
  },
  "luminance": 0.04991
}

Semantic roles & 50–950 ramp

primary
#4A239A
secondary
#9EBF5A
accent
#E642B0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4A239A

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

Preview Lab → · Contrast checker → · Palette generator →

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