#4B2EA6#4B2EA6

#4B2EA6 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.180 H 286.7°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#4B2EA6
RGBrgb(75, 46, 166)
HSLhsl(255, 57%, 42%)
HSVhsv(255, 72%, 65%)
CMYKcmyk(54.8%, 72.3%, 0%, 34.9%)
CIE-LABlab(29.92, 43.95, -60.02)
CIE-LCHlch(29.92, 74.39, 306.22°)
OKLaboklab(41.52% 0.0519 -0.1726)
OKLCHoklch(41.52% 0.18 286.7)
XYZxyz(10.7595, 6.2024, 36.6992)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2EA6 #89A62E
analogous
#2E4DA6 #4B2EA6 #872EA6
triadic
#4B2EA6 #A64B2E #2EA64B
tetradic
#4B2EA6 #A62E4D #89A62E #2EA687
square
#4B2EA6 #A62E4D #89A62E #2EA687
split-complementary
#4B2EA6 #A6872E #4DA62E
monochromatic
#201346 #352176 #4B2EA6 #6646CC #8E76D9

Accessibility & contrast

On white

9.37
#4B2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4B2EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2EA6
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2EA6#FFFFFF#000000##FFFFFF
##4B2EA61.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AA
Deuteranopia (green-blind)
#0043A4
Tritanopia (blue-blind)
#254E67
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4b2ea6;
/* rgb */ color: rgb(75, 46, 166);
/* oklch */ color: oklch(41.5% 0.180 286.7);
Tailwind
colors: {
  custom: {
    50: '#8769c1',
    500: '#4b2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #4b2ea6;
$custom-light: #8769c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2ea6",
  "rgb": {
    "r": 75,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 254.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41516,
    "c": 0.18022,
    "h": 286.7
  },
  "luminance": 0.06203
}

Semantic roles & 50–950 ramp

primary
#4B2EA6
secondary
#ADC16F
accent
#E048BB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4B2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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