#4A208B#4A208B

#4A208B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.164 H 295.0°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#4A208B
RGBrgb(74, 32, 139)
HSLhsl(264, 63%, 34%)
HSVhsv(264, 77%, 55%)
CMYKcmyk(46.8%, 77%, 0%, 45.5%)
CIE-LABlab(24.80, 43.24, -51.85)
CIE-LCHlch(24.80, 67.51, 309.82°)
OKLaboklab(37.12% 0.0692 -0.1486)
OKLCHoklch(37.12% 0.164 295)
XYZxyz(7.9995, 4.3527, 24.8398)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A208B #618B20
analogous
#202C8B #4A208B #7F208B
triadic
#4A208B #8B4A20 #208B4A
tetradic
#4A208B #8B202C #618B20 #208B7F
square
#4A208B #8B202C #618B20 #208B7F
split-complementary
#4A208B #8B7F20 #2C8B20
monochromatic
#150928 #301559 #4A208B #642BBD #844FD6

Accessibility & contrast

On white

11.23
#4A208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4A208B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A208B
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A208B#FFFFFF#000000##FFFFFF
##4A208B1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#373D54
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4a208b;
/* rgb */ color: rgb(74, 32, 139);
/* oklch */ color: oklch(37.1% 0.164 295.0);
Tailwind
colors: {
  custom: {
    50: '#8360ae',
    500: '#4a208b',
    950: '#000000',
  },
}
SCSS
$custom: #4a208b;
$custom-light: #8360ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4a208b",
  "rgb": {
    "r": 74,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 263.551,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37123,
    "c": 0.1639,
    "h": 295
  },
  "luminance": 0.04353
}

Semantic roles & 50–950 ramp

primary
#4A208B
secondary
#8FBA4D
accent
#E642A5
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A208B

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

Preview Lab → · Contrast checker → · Palette generator →

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