#4A228F#4A228F

#4A228F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.166 H 293.5°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#4A228F
RGBrgb(74, 34, 143)
HSLhsl(262, 62%, 35%)
HSVhsv(262, 76%, 56%)
CMYKcmyk(48.3%, 76.2%, 0%, 43.9%)
CIE-LABlab(25.51, 43.37, -53.18)
CIE-LCHlch(25.51, 68.62, 309.20°)
OKLaboklab(37.73% 0.0663 -0.1525)
OKLCHoklch(37.73% 0.166 293.5)
XYZxyz(8.3526, 4.5828, 26.4258)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A228F #678F22
analogous
#22318F #4A228F #80228F
triadic
#4A228F #8F4A22 #228F4A
tetradic
#4A228F #8F2231 #678F22 #228F80
square
#4A228F #8F2231 #678F22 #228F80
split-complementary
#4A228F #8F8022 #318F22
monochromatic
#170A2C #30165E #4A228F #642EC0 #8455D7

Accessibility & contrast

On white

10.96
#4A228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4A228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A228F
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A228F#FFFFFF#000000##FFFFFF
##4A228F1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#353F57
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4a228f;
/* rgb */ color: rgb(74, 34, 143);
/* oklch */ color: oklch(37.7% 0.166 293.5);
Tailwind
colors: {
  custom: {
    50: '#8461b1',
    500: '#4a228f',
    950: '#000000',
  },
}
SCSS
$custom: #4a228f;
$custom-light: #8461b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a228f",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 262.018,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37732,
    "c": 0.1663,
    "h": 293.5
  },
  "luminance": 0.04583
}

Semantic roles & 50–950 ramp

primary
#4A228F
secondary
#94BA52
accent
#E543A9
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4A228F

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

Preview Lab → · Contrast checker → · Palette generator →

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