#4A227C#4A227C

#4A227C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.0% C 0.144 H 299.4°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#4A227C
RGBrgb(74, 34, 124)
HSLhsl(267, 57%, 31%)
HSVhsv(267, 73%, 49%)
CMYKcmyk(40.3%, 72.6%, 0%, 51.4%)
CIE-LABlab(23.85, 38.13, -43.98)
CIE-LCHlch(23.85, 58.21, 310.93°)
OKLaboklab(36.04% 0.0706 -0.1255)
OKLCHoklch(36.04% 0.144 299.4)
XYZxyz(7.0332, 4.0551, 19.4770)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A227C #547C22
analogous
#22277C #4A227C #77227C
triadic
#4A227C #7C4A22 #227C4A
tetradic
#4A227C #7C2227 #547C22 #227C77
square
#4A227C #7C2227 #547C22 #227C77
split-complementary
#4A227C #7C7722 #277C22
monochromatic
#11081C #2D154C #4A227C #672FAC #854BCE

Accessibility & contrast

On white

11.60
#4A227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4A227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A227C
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A227C#FFFFFF#000000##FFFFFF
##4A227C1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#3E384C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a227c;
/* rgb */ color: rgb(74, 34, 124);
/* oklch */ color: oklch(36.0% 0.144 299.4);
Tailwind
colors: {
  custom: {
    50: '#8161a3',
    500: '#4a227c',
    950: '#000000',
  },
}
SCSS
$custom: #4a227c;
$custom-light: #8161a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a227c",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 266.667,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36044,
    "c": 0.14397,
    "h": 299.4
  },
  "luminance": 0.04055
}

Semantic roles & 50–950 ramp

primary
#4A227C
secondary
#82AF4B
accent
#E0489C
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A227C

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

Preview Lab → · Contrast checker → · Palette generator →

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