#4A226E#4A226E

#4A226E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.127 H 304.8°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#4A226E
RGBrgb(74, 34, 110)
HSLhsl(272, 53%, 28%)
HSVhsv(272, 69%, 43%)
CMYKcmyk(32.7%, 69.1%, 0%, 56.9%)
CIE-LABlab(22.74, 34.39, -36.82)
CIE-LCHlch(22.74, 50.38, 313.04°)
OKLaboklab(34.9% 0.0726 -0.1044)
OKLCHoklch(34.9% 0.127 304.8)
XYZxyz(6.2099, 3.7257, 15.1408)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A226E #466E22
analogous
#24226E #4A226E #6E226C
triadic
#4A226E #6E4A22 #226E4A
tetradic
#4A226E #6E2422 #466E22 #226C6E
square
#4A226E #6E2422 #466E22 #226C6E
split-complementary
#4A226E #6C6E22 #226E24
monochromatic
#100717 #2B143F #4A226E #69309D #8945C5

Accessibility & contrast

On white

12.03
#4A226E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4A226E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A226E
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A226E#FFFFFF#000000##FFFFFF
##4A226E1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003570
Deuteranopia (green-blind)
#0B366C
Tritanopia (blue-blind)
#433345
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4a226e;
/* rgb */ color: rgb(74, 34, 110);
/* oklch */ color: oklch(34.9% 0.127 304.8);
Tailwind
colors: {
  custom: {
    50: '#806098',
    500: '#4a226e',
    950: '#000000',
  },
}
SCSS
$custom: #4a226e;
$custom-light: #806098;
$custom-dark: #000000;
JSON
{
  "hex": "#4a226e",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 110
  },
  "hsl": {
    "h": 271.579,
    "s": 52.778,
    "l": 28.235
  },
  "oklch": {
    "l": 0.349,
    "c": 0.12719,
    "h": 304.8
  },
  "luminance": 0.03726
}

Semantic roles & 50–950 ramp

primary
#4A226E
secondary
#74A14A
accent
#DC4C90
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #4A226E

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

Preview Lab → · Contrast checker → · Palette generator →

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