#4A2097#4A2097

#4A2097 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.178 H 291.7°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#4A2097
RGBrgb(74, 32, 151)
HSLhsl(261, 65%, 36%)
HSVhsv(261, 79%, 59%)
CMYKcmyk(51%, 78.8%, 0%, 40.8%)
CIE-LABlab(25.93, 46.53, -57.43)
CIE-LCHlch(25.93, 73.91, 309.01°)
OKLaboklab(38.26% 0.0657 -0.165)
OKLCHoklch(38.26% 0.178 291.7)
XYZxyz(8.9249, 4.7229, 29.7135)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2097 #6D9720
analogous
#203297 #4A2097 #852097
triadic
#4A2097 #974A20 #20974A
tetradic
#4A2097 #972032 #6D9720 #209785
square
#4A2097 #972032 #6D9720 #209785
split-complementary
#4A2097 #978520 #329720
monochromatic
#190B32 #311564 #4A2097 #632BC9 #8556DB

Accessibility & contrast

On white

10.80
#4A2097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4A2097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2097
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2097#FFFFFF#000000##FFFFFF
##4A20971.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#30425B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4a2097;
/* rgb */ color: rgb(74, 32, 151);
/* oklch */ color: oklch(38.3% 0.178 291.7);
Tailwind
colors: {
  custom: {
    50: '#8561b7',
    500: '#4a2097',
    950: '#000000',
  },
}
SCSS
$custom: #4a2097;
$custom-light: #8561b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2097",
  "rgb": {
    "r": 74,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 261.176,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38255,
    "c": 0.17756,
    "h": 291.7
  },
  "luminance": 0.04723
}

Semantic roles & 50–950 ramp

primary
#4A2097
secondary
#99BF54
accent
#E840AD
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4A2097

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

Preview Lab → · Contrast checker → · Palette generator →

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