#4A227F#4A227F

#4A227F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.148 H 298.3°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#4A227F
RGBrgb(74, 34, 127)
HSLhsl(266, 58%, 32%)
HSVhsv(266, 73%, 50%)
CMYKcmyk(41.7%, 73.2%, 0%, 50.2%)
CIE-LABlab(24.10, 38.95, -45.47)
CIE-LCHlch(24.10, 59.87, 310.59°)
OKLaboklab(36.3% 0.07 -0.1299)
OKLCHoklch(36.3% 0.148 298.3)
XYZxyz(7.2259, 4.1321, 20.4914)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A227F #577F22
analogous
#22297F #4A227F #79227F
triadic
#4A227F #7F4A22 #227F4A
tetradic
#4A227F #7F2229 #577F22 #227F79
square
#4A227F #7F2229 #577F22 #227F79
split-complementary
#4A227F #7F7922 #297F22
monochromatic
#12081E #2E154F #4A227F #662FAF #854CCF

Accessibility & contrast

On white

11.50
#4A227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4A227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A227F
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A227F#FFFFFF#000000##FFFFFF
##4A227F1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#3D394E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a227f;
/* rgb */ color: rgb(74, 34, 127);
/* oklch */ color: oklch(36.3% 0.148 298.3);
Tailwind
colors: {
  custom: {
    50: '#8261a5',
    500: '#4a227f',
    950: '#000000',
  },
}
SCSS
$custom: #4a227f;
$custom-light: #8261a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a227f",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 265.806,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36301,
    "c": 0.14753,
    "h": 298.3
  },
  "luminance": 0.04132
}

Semantic roles & 50–950 ramp

primary
#4A227F
secondary
#86B24B
accent
#E1479F
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A227F

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

Preview Lab → · Contrast checker → · Palette generator →

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