#4B2397#4B2397

#4B2397 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.174 H 291.8°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#4B2397
RGBrgb(75, 35, 151)
HSLhsl(261, 62%, 36%)
HSVhsv(261, 77%, 59%)
CMYKcmyk(50.3%, 76.8%, 0%, 40.8%)
CIE-LABlab(26.54, 45.27, -56.43)
CIE-LCHlch(26.54, 72.34, 308.74°)
OKLaboklab(38.71% 0.0649 -0.162)
OKLCHoklch(38.71% 0.175 291.8)
XYZxyz(9.0870, 4.9319, 29.7453)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2397 #6F9723
analogous
#233597 #4B2397 #852397
triadic
#4B2397 #974B23 #23974B
tetradic
#4B2397 #972335 #6F9723 #239785
square
#4B2397 #972335 #6F9723 #239785
split-complementary
#4B2397 #978523 #359723
monochromatic
#1A0C34 #321765 #4B2397 #642FC9 #875BD9

Accessibility & contrast

On white

10.57
#4B2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4B2397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2397
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2397#FFFFFF#000000##FFFFFF
##4B23971.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b2397;
/* rgb */ color: rgb(75, 35, 151);
/* oklch */ color: oklch(38.7% 0.174 291.8);
Tailwind
colors: {
  custom: {
    50: '#8562b7',
    500: '#4b2397',
    950: '#000000',
  },
}
SCSS
$custom: #4b2397;
$custom-light: #8562b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2397",
  "rgb": {
    "r": 75,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 260.69,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38709,
    "c": 0.1745,
    "h": 291.8
  },
  "luminance": 0.04932
}

Semantic roles & 50–950 ramp

primary
#4B2397
secondary
#9BBE58
accent
#E542AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4B2397

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

Preview Lab → · Contrast checker → · Palette generator →

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