#4B2498#4B2498

#4B2498 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.175 H 291.4°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#4B2498
RGBrgb(75, 36, 152)
HSLhsl(260, 62%, 37%)
HSVhsv(260, 76%, 60%)
CMYKcmyk(50.7%, 76.3%, 0%, 40.4%)
CIE-LABlab(26.80, 45.06, -56.61)
CIE-LCHlch(26.80, 72.35, 308.52°)
OKLaboklab(38.92% 0.0638 -0.1625)
OKLCHoklch(38.92% 0.175 291.4)
XYZxyz(9.1984, 5.0243, 30.1848)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2498 #719824
analogous
#243798 #4B2498 #852498
triadic
#4B2498 #984B24 #24984B
tetradic
#4B2498 #982437 #719824 #249885
square
#4B2498 #982437 #719824 #249885
split-complementary
#4B2498 #988524 #379824
monochromatic
#1A0D35 #331867 #4B2498 #6330C9 #875ED9

Accessibility & contrast

On white

10.47
#4B2498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4B2498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2498
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2498#FFFFFF#000000##FFFFFF
##4B24981.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003D96
Tritanopia (blue-blind)
#31445C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4b2498;
/* rgb */ color: rgb(75, 36, 152);
/* oklch */ color: oklch(38.9% 0.175 291.4);
Tailwind
colors: {
  custom: {
    50: '#8663b7',
    500: '#4b2498',
    950: '#000000',
  },
}
SCSS
$custom: #4b2498;
$custom-light: #8663b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2498",
  "rgb": {
    "r": 75,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 260.172,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.38922,
    "c": 0.17459,
    "h": 291.4
  },
  "luminance": 0.05025
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4B2498

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

Preview Lab → · Contrast checker → · Palette generator →

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