#4B2297#4B2297

#4B2297 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.176 H 292.0°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#4B2297
RGBrgb(75, 34, 151)
HSLhsl(261, 63%, 36%)
HSVhsv(261, 77%, 59%)
CMYKcmyk(50.3%, 77.5%, 0%, 40.8%)
CIE-LABlab(26.37, 45.75, -56.70)
CIE-LCHlch(26.37, 72.85, 308.90°)
OKLaboklab(38.59% 0.0657 -0.1628)
OKLCHoklch(38.59% 0.176 292)
XYZxyz(9.0580, 4.8739, 29.7357)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2297 #6E9722
analogous
#223497 #4B2297 #862297
triadic
#4B2297 #974B22 #22974B
tetradic
#4B2297 #972234 #6E9722 #229786
square
#4B2297 #972234 #6E9722 #229786
split-complementary
#4B2297 #978622 #349722
monochromatic
#190C33 #321765 #4B2297 #642DC9 #875ADA

Accessibility & contrast

On white

10.63
#4B2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4B2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2297
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2297#FFFFFF#000000##FFFFFF
##4B22971.0010.631.9710.63
#FFFFFF10.631.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#32425B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4b2297;
/* rgb */ color: rgb(75, 34, 151);
/* oklch */ color: oklch(38.6% 0.176 292.0);
Tailwind
colors: {
  custom: {
    50: '#8662b7',
    500: '#4b2297',
    950: '#000000',
  },
}
SCSS
$custom: #4b2297;
$custom-light: #8662b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2297",
  "rgb": {
    "r": 75,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 261.026,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38591,
    "c": 0.17555,
    "h": 292
  },
  "luminance": 0.04874
}

Semantic roles & 50–950 ramp

primary
#4B2297
secondary
#9ABE57
accent
#E642AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4B2297

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

Preview Lab → · Contrast checker → · Palette generator →

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