#4A206F#4A206F

#4A206F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.131 H 304.8°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#4A206F
RGBrgb(74, 32, 111)
HSLhsl(272, 55%, 28%)
HSVhsv(272, 71%, 44%)
CMYKcmyk(33.3%, 71.2%, 0%, 56.5%)
CIE-LABlab(22.43, 35.72, -37.97)
CIE-LCHlch(22.43, 52.13, 313.25°)
OKLaboklab(34.7% 0.0749 -0.1078)
OKLCHoklch(34.7% 0.131 304.8)
XYZxyz(6.2092, 3.6366, 15.4107)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A206F #456F20
analogous
#22206F #4A206F #6F206C
triadic
#4A206F #6F4A20 #206F4A
tetradic
#4A206F #6F2220 #456F20 #206C6F
square
#4A206F #6F2220 #456F20 #206C6F
split-complementary
#4A206F #6C6F20 #206F22
monochromatic
#100718 #2A123F #4A206F #6A2E9F #8941C8

Accessibility & contrast

On white

12.16
#4A206F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4A206F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A206F
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A206F#FFFFFF#000000##FFFFFF
##4A206F1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003571
Deuteranopia (green-blind)
#04366D
Tritanopia (blue-blind)
#433244
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4a206f;
/* rgb */ color: rgb(74, 32, 111);
/* oklch */ color: oklch(34.7% 0.131 304.8);
Tailwind
colors: {
  custom: {
    50: '#805f99',
    500: '#4a206f',
    950: '#000000',
  },
}
SCSS
$custom: #4a206f;
$custom-light: #805f99;
$custom-dark: #000000;
JSON
{
  "hex": "#4a206f",
  "rgb": {
    "r": 74,
    "g": 32,
    "b": 111
  },
  "hsl": {
    "h": 271.899,
    "s": 55.245,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34701,
    "c": 0.13128,
    "h": 304.8
  },
  "luminance": 0.03637
}

Semantic roles & 50–950 ramp

primary
#4A206F
secondary
#73A348
accent
#DF498F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4A206F

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

Preview Lab → · Contrast checker → · Palette generator →

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