#4A259A#4A259A

#4A259A is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.176 H 290.2°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#4A259A
RGBrgb(74, 37, 154)
HSLhsl(259, 61%, 37%)
HSVhsv(259, 76%, 60%)
CMYKcmyk(51.9%, 76%, 0%, 39.6%)
CIE-LABlab(27.05, 44.98, -57.43)
CIE-LCHlch(27.05, 72.95, 308.06°)
OKLaboklab(39.13% 0.0608 -0.165)
OKLCHoklch(39.13% 0.176 290.2)
XYZxyz(9.3167, 5.1117, 31.0613)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A259A #759A25
analogous
#253B9A #4A259A #84259A
triadic
#4A259A #9A4A25 #259A4A
tetradic
#4A259A #9A253B #759A25 #259A84
square
#4A259A #9A253B #759A25 #259A84
split-complementary
#4A259A #9A8425 #3B9A25
monochromatic
#1B0D37 #321969 #4A259A #6231CB #8760D9

Accessibility & contrast

On white

10.38
#4A259A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4A259A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A259A
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A259A#FFFFFF#000000##FFFFFF
##4A259A1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429D
Deuteranopia (green-blind)
#003D98
Tritanopia (blue-blind)
#2E455E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4a259a;
/* rgb */ color: rgb(74, 37, 154);
/* oklch */ color: oklch(39.1% 0.176 290.2);
Tailwind
colors: {
  custom: {
    50: '#8564b9',
    500: '#4a259a',
    950: '#000000',
  },
}
SCSS
$custom: #4a259a;
$custom-light: #8564b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a259a",
  "rgb": {
    "r": 74,
    "g": 37,
    "b": 154
  },
  "hsl": {
    "h": 258.974,
    "s": 61.257,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39127,
    "c": 0.17586,
    "h": 290.2
  },
  "luminance": 0.05112
}

Semantic roles & 50–950 ramp

primary
#4A259A
secondary
#9FBE5D
accent
#E443B1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A259A

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

Preview Lab → · Contrast checker → · Palette generator →

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