#4A2267#4A2267

#4A2267 is a dark, moderate violet. Relative luminance 0.036; OKLCH L 34.4% C 0.119 H 308.0°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#4A2267
RGBrgb(74, 34, 103)
HSLhsl(275, 50%, 27%)
HSVhsv(275, 67%, 40%)
CMYKcmyk(28.2%, 67%, 0%, 59.6%)
CIE-LABlab(22.23, 32.56, -33.10)
CIE-LCHlch(22.23, 46.43, 314.53°)
OKLaboklab(34.37% 0.0732 -0.0935)
OKLCHoklch(34.37% 0.119 308)
XYZxyz(5.8437, 3.5793, 13.2123)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2267 #3F6722
analogous
#282267 #4A2267 #672262
triadic
#4A2267 #674A22 #22674A
tetradic
#4A2267 #672822 #3F6722 #226267
square
#4A2267 #672822 #3F6722 #226267
split-complementary
#4A2267 #626722 #226728
monochromatic
#110817 #291339 #4A2267 #6B3195 #8C43C1

Accessibility & contrast

On white

12.24
#4A2267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4A2267 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2267
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2267#FFFFFF#000000##FFFFFF
##4A22671.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003469
Deuteranopia (green-blind)
#163665
Tritanopia (blue-blind)
#463041
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4a2267;
/* rgb */ color: rgb(74, 34, 103);
/* oklch */ color: oklch(34.4% 0.119 308.0);
Tailwind
colors: {
  custom: {
    50: '#7f6093',
    500: '#4a2267',
    950: '#000000',
  },
}
SCSS
$custom: #4a2267;
$custom-light: #7f6093;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2267",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 103
  },
  "hsl": {
    "h": 274.783,
    "s": 50.365,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34365,
    "c": 0.11873,
    "h": 308
  },
  "luminance": 0.03579
}

Semantic roles & 50–950 ramp

primary
#4A2267
secondary
#6C9B4A
accent
#DA4E89
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#0A050D
muted
#7C797E

Preview Lab

Preview with #4A2267

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

Preview Lab → · Contrast checker → · Palette generator →

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