#4A207A#4A207A

#4A207A is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.144 H 300.5°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#4A207A
RGBrgb(74, 32, 122)
HSLhsl(268, 58%, 30%)
HSVhsv(268, 74%, 48%)
CMYKcmyk(39.3%, 73.8%, 0%, 52.2%)
CIE-LABlab(23.32, 38.63, -43.58)
CIE-LCHlch(23.32, 58.23, 311.55°)
OKLaboklab(35.61% 0.0731 -0.1243)
OKLCHoklch(35.61% 0.144 300.5)
XYZxyz(6.8525, 3.8940, 18.7992)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A207A #507A20
analogous
#20237A #4A207A #77207A
triadic
#4A207A #7A4A20 #207A4A
tetradic
#4A207A #7A2023 #507A20 #207A77
square
#4A207A #7A2023 #507A20 #207A77
split-complementary
#4A207A #7A7720 #237A20
monochromatic
#0F0719 #2D134A #4A207A #672DAA #8646CE

Accessibility & contrast

On white

11.81
#4A207A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4A207A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A207A
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A207A#FFFFFF#000000##FFFFFF
##4A207A1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#3F364B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4a207a;
/* rgb */ color: rgb(74, 32, 122);
/* oklch */ color: oklch(35.6% 0.144 300.5);
Tailwind
colors: {
  custom: {
    50: '#815fa1',
    500: '#4a207a',
    950: '#000000',
  },
}
SCSS
$custom: #4a207a;
$custom-light: #815fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a207a",
  "rgb": {
    "r": 74,
    "g": 32,
    "b": 122
  },
  "hsl": {
    "h": 268,
    "s": 58.442,
    "l": 30.196
  },
  "oklch": {
    "l": 0.35611,
    "c": 0.1442,
    "h": 300.5
  },
  "luminance": 0.03894
}

Semantic roles & 50–950 ramp

primary
#4A207A
secondary
#7EAD49
accent
#E24699
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A207A

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

Preview Lab → · Contrast checker → · Palette generator →

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