#4A248A#4A248A

#4A248A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.5% C 0.158 H 294.5°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#4A248A
RGBrgb(74, 36, 138)
HSLhsl(262, 59%, 34%)
HSVhsv(262, 74%, 54%)
CMYKcmyk(46.4%, 73.9%, 0%, 45.9%)
CIE-LABlab(25.42, 40.96, -50.22)
CIE-LCHlch(25.42, 64.81, 309.20°)
OKLaboklab(37.53% 0.0657 -0.1438)
OKLCHoklch(37.53% 0.158 294.5)
XYZxyz(8.0411, 4.5524, 24.4949)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A248A #648A24
analogous
#24318A #4A248A #7D248A
triadic
#4A248A #8A4A24 #248A4A
tetradic
#4A248A #8A2431 #648A24 #248A7D
square
#4A248A #8A2431 #648A24 #248A7D
split-complementary
#4A248A #8A7D24 #318A24
monochromatic
#160B29 #301759 #4A248A #6431BB #8456D3

Accessibility & contrast

On white

10.99
#4A248A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4A248A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A248A
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A248A#FFFFFF#000000##FFFFFF
##4A248A1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#383E55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4a248a;
/* rgb */ color: rgb(74, 36, 138);
/* oklch */ color: oklch(37.5% 0.158 294.5);
Tailwind
colors: {
  custom: {
    50: '#8362ad',
    500: '#4a248a',
    950: '#000000',
  },
}
SCSS
$custom: #4a248a;
$custom-light: #8362ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4a248a",
  "rgb": {
    "r": 74,
    "g": 36,
    "b": 138
  },
  "hsl": {
    "h": 262.353,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37529,
    "c": 0.15812,
    "h": 294.5
  },
  "luminance": 0.04553
}

Semantic roles & 50–950 ramp

primary
#4A248A
secondary
#92B753
accent
#E246A8
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4A248A

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

Preview Lab → · Contrast checker → · Palette generator →

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