#4B2EA7#4B2EA7

#4B2EA7 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.181 H 286.6°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#4B2EA7
RGBrgb(75, 46, 167)
HSLhsl(254, 57%, 42%)
HSVhsv(254, 72%, 65%)
CMYKcmyk(55.1%, 72.5%, 0%, 34.5%)
CIE-LABlab(30.01, 44.25, -60.47)
CIE-LCHlch(30.01, 74.93, 306.19°)
OKLaboklab(41.61% 0.0517 -0.1739)
OKLCHoklch(41.61% 0.181 286.6)
XYZxyz(10.8516, 6.2393, 37.1842)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2EA7 #8AA72E
analogous
#2E4EA7 #4B2EA7 #882EA7
triadic
#4B2EA7 #A74B2E #2EA74B
tetradic
#4B2EA7 #A72E4E #8AA72E #2EA788
square
#4B2EA7 #A72E4E #8AA72E #2EA788
split-complementary
#4B2EA7 #A7882E #4EA72E
monochromatic
#201447 #352177 #4B2EA7 #6646CC #8E76D9

Accessibility & contrast

On white

9.34
#4B2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4B2EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2EA7
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2EA7#FFFFFF#000000##FFFFFF
##4B2EA71.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0043A5
Tritanopia (blue-blind)
#234E67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4b2ea7;
/* rgb */ color: rgb(75, 46, 167);
/* oklch */ color: oklch(41.6% 0.181 286.6);
Tailwind
colors: {
  custom: {
    50: '#876ac2',
    500: '#4b2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #4b2ea7;
$custom-light: #876ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2ea7",
  "rgb": {
    "r": 75,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 254.38,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41608,
    "c": 0.18144,
    "h": 286.6
  },
  "luminance": 0.0624
}

Semantic roles & 50–950 ramp

primary
#4B2EA7
secondary
#AEC170
accent
#E048BC
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4B2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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