#4A227D#4A227D

#4A227D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.1% C 0.145 H 299.0°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#4A227D
RGBrgb(74, 34, 125)
HSLhsl(266, 57%, 31%)
HSVhsv(266, 73%, 49%)
CMYKcmyk(40.8%, 72.8%, 0%, 51%)
CIE-LABlab(23.94, 38.41, -44.48)
CIE-LCHlch(23.94, 58.77, 310.81°)
OKLaboklab(36.13% 0.0704 -0.1269)
OKLCHoklch(36.13% 0.145 299)
XYZxyz(7.0968, 4.0805, 19.8118)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A227D #557D22
analogous
#22277D #4A227D #77227D
triadic
#4A227D #7D4A22 #227D4A
tetradic
#4A227D #7D2227 #557D22 #227D77
square
#4A227D #7D2227 #557D22 #227D77
split-complementary
#4A227D #7D7722 #277D22
monochromatic
#11081D #2E154D #4A227D #662FAD #854BCE

Accessibility & contrast

On white

11.56
#4A227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4A227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A227D
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A227D#FFFFFF#000000##FFFFFF
##4A227D1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#3E384D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a227d;
/* rgb */ color: rgb(74, 34, 125);
/* oklch */ color: oklch(36.1% 0.145 299.0);
Tailwind
colors: {
  custom: {
    50: '#8161a3',
    500: '#4a227d',
    950: '#000000',
  },
}
SCSS
$custom: #4a227d;
$custom-light: #8161a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a227d",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 266.374,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36129,
    "c": 0.14515,
    "h": 299
  },
  "luminance": 0.04081
}

Semantic roles & 50–950 ramp

primary
#4A227D
secondary
#83B04B
accent
#E0479D
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A227D

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

Preview Lab → · Contrast checker → · Palette generator →

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