#4B2EAC#4B2EAC

#4B2EAC is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.187 H 285.7°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#4B2EAC
RGBrgb(75, 46, 172)
HSLhsl(254, 58%, 43%)
HSVhsv(254, 73%, 67%)
CMYKcmyk(56.4%, 73.3%, 0%, 32.5%)
CIE-LABlab(30.47, 45.73, -62.72)
CIE-LCHlch(30.47, 77.63, 306.10°)
OKLaboklab(42.07% 0.0506 -0.1805)
OKLCHoklch(42.07% 0.187 285.7)
XYZxyz(11.3228, 6.4278, 39.6658)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2EAC #8FAC2E
analogous
#2E50AC #4B2EAC #8A2EAC
triadic
#4B2EAC #AC4B2E #2EAC4B
tetradic
#4B2EAC #AC2E50 #8FAC2E #2EAC8A
square
#4B2EAC #AC2E50 #8FAC2E #2EAC8A
split-complementary
#4B2EAC #AC8A2E #50AC2E
monochromatic
#21144B #36217C #4B2EAC #6849CE #9079DB

Accessibility & contrast

On white

9.19
#4B2EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4B2EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2EAC
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2EAC#FFFFFF#000000##FFFFFF
##4B2EAC1.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#0044AA
Tritanopia (blue-blind)
#1D506A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4b2eac;
/* rgb */ color: rgb(75, 46, 172);
/* oklch */ color: oklch(42.1% 0.187 285.7);
Tailwind
colors: {
  custom: {
    50: '#886ac6',
    500: '#4b2eac',
    950: '#000000',
  },
}
SCSS
$custom: #4b2eac;
$custom-light: #886ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2eac",
  "rgb": {
    "r": 75,
    "g": 46,
    "b": 172
  },
  "hsl": {
    "h": 253.81,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42074,
    "c": 0.18747,
    "h": 285.7
  },
  "luminance": 0.06428
}

Semantic roles & 50–950 ramp

primary
#4B2EAC
secondary
#B1C372
accent
#E147BE
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4B2EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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