#4B2497#4B2497

#4B2497 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.173 H 291.7°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#4B2497
RGBrgb(75, 36, 151)
HSLhsl(260, 61%, 37%)
HSVhsv(260, 76%, 59%)
CMYKcmyk(50.3%, 76.2%, 0%, 40.8%)
CIE-LABlab(26.71, 44.78, -56.15)
CIE-LCHlch(26.71, 71.82, 308.57°)
OKLaboklab(38.83% 0.064 -0.1612)
OKLCHoklch(38.83% 0.173 291.7)
XYZxyz(9.1169, 4.9916, 29.7553)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2497 #709724
analogous
#243797 #4B2497 #852497
triadic
#4B2497 #974B24 #24974B
tetradic
#4B2497 #972437 #709724 #249785
square
#4B2497 #972437 #709724 #249785
split-complementary
#4B2497 #978524 #379724
monochromatic
#1A0C34 #321866 #4B2497 #6430C8 #875DD8

Accessibility & contrast

On white

10.51
#4B2497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4B2497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2497
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2497#FFFFFF#000000##FFFFFF
##4B24971.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#32435C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4b2497;
/* rgb */ color: rgb(75, 36, 151);
/* oklch */ color: oklch(38.8% 0.173 291.7);
Tailwind
colors: {
  custom: {
    50: '#8563b7',
    500: '#4b2497',
    950: '#000000',
  },
}
SCSS
$custom: #4b2497;
$custom-light: #8563b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2497",
  "rgb": {
    "r": 75,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 260.348,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.38829,
    "c": 0.17344,
    "h": 291.7
  },
  "luminance": 0.04992
}

Semantic roles & 50–950 ramp

primary
#4B2497
secondary
#9BBD5A
accent
#E543AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4B2497

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

Preview Lab → · Contrast checker → · Palette generator →

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