#4A207B#4A207B

#4A207B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.145 H 300.1°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#4A207B
RGBrgb(74, 32, 123)
HSLhsl(268, 59%, 30%)
HSVhsv(268, 74%, 48%)
CMYKcmyk(39.8%, 74%, 0%, 51.8%)
CIE-LABlab(23.40, 38.90, -44.08)
CIE-LCHlch(23.40, 58.78, 311.43°)
OKLaboklab(35.7% 0.0729 -0.1258)
OKLCHoklch(35.7% 0.145 300.1)
XYZxyz(6.9148, 3.9189, 19.1272)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A207B #517B20
analogous
#20247B #4A207B #77207B
triadic
#4A207B #7B4A20 #207B4A
tetradic
#4A207B #7B2024 #517B20 #207B77
square
#4A207B #7B2024 #517B20 #207B77
split-complementary
#4A207B #7B7720 #247B20
monochromatic
#10071A #2D134A #4A207B #672DAC #8546CF

Accessibility & contrast

On white

11.77
#4A207B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A207B
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A207B#FFFFFF#000000##FFFFFF
##4A207B1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a207b;
/* rgb */ color: rgb(74, 32, 123);
/* oklch */ color: oklch(35.7% 0.145 300.1);
Tailwind
colors: {
  custom: {
    50: '#815fa2',
    500: '#4a207b',
    950: '#000000',
  },
}
SCSS
$custom: #4a207b;
$custom-light: #815fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a207b",
  "rgb": {
    "r": 74,
    "g": 32,
    "b": 123
  },
  "hsl": {
    "h": 267.692,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.35697,
    "c": 0.14537,
    "h": 300.1
  },
  "luminance": 0.03919
}

Semantic roles & 50–950 ramp

primary
#4A207B
secondary
#7FAE49
accent
#E2469A
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A207B

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

Preview Lab → · Contrast checker → · Palette generator →

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