#4A227A#4A227A

#4A227A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.142 H 300.1°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#4A227A
RGBrgb(74, 34, 122)
HSLhsl(267, 56%, 31%)
HSVhsv(267, 72%, 48%)
CMYKcmyk(39.3%, 72.1%, 0%, 52.2%)
CIE-LABlab(23.69, 37.59, -42.98)
CIE-LCHlch(23.69, 57.10, 311.18°)
OKLaboklab(35.88% 0.0709 -0.1225)
OKLCHoklch(35.88% 0.142 300.1)
XYZxyz(6.9081, 4.0050, 18.8177)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A227A #527A22
analogous
#22267A #4A227A #76227A
triadic
#4A227A #7A4A22 #227A4A
tetradic
#4A227A #7A2226 #527A22 #227A76
square
#4A227A #7A2226 #527A22 #227A76
split-complementary
#4A227A #7A7622 #267A22
monochromatic
#10071A #2D154A #4A227A #672FAA #854ACD

Accessibility & contrast

On white

11.66
#4A227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4A227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A227A
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A227A#FFFFFF#000000##FFFFFF
##4A227A1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#003878
Tritanopia (blue-blind)
#3F374B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4a227a;
/* rgb */ color: rgb(74, 34, 122);
/* oklch */ color: oklch(35.9% 0.142 300.1);
Tailwind
colors: {
  custom: {
    50: '#8160a1',
    500: '#4a227a',
    950: '#000000',
  },
}
SCSS
$custom: #4a227a;
$custom-light: #8160a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a227a",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 267.273,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35875,
    "c": 0.14158,
    "h": 300.1
  },
  "luminance": 0.04005
}

Semantic roles & 50–950 ramp

primary
#4A227A
secondary
#80AD4B
accent
#E0489B
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A227A

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

Preview Lab → · Contrast checker → · Palette generator →

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