#4B218E#4B218E

#4B218E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.166 H 294.5°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#4B218E
RGBrgb(75, 33, 142)
HSLhsl(263, 62%, 34%)
HSVhsv(263, 77%, 56%)
CMYKcmyk(47.2%, 76.8%, 0%, 44.3%)
CIE-LABlab(25.37, 43.74, -52.79)
CIE-LCHlch(25.37, 68.56, 309.65°)
OKLaboklab(37.63% 0.069 -0.1513)
OKLCHoklch(37.63% 0.166 294.5)
XYZxyz(8.3267, 4.5363, 26.0228)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B218E #648E21
analogous
#212E8E #4B218E #82218E
triadic
#4B218E #8E4B21 #218E4B
tetradic
#4B218E #8E212E #648E21 #218E82
square
#4B218E #8E212E #648E21 #218E82
split-complementary
#4B218E #8E8221 #2E8E21
monochromatic
#170A2B #31155C #4B218E #652DC0 #8652D7

Accessibility & contrast

On white

11.01
#4B218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4B218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B218E
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B218E#FFFFFF#000000##FFFFFF
##4B218E1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#373E56
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4b218e;
/* rgb */ color: rgb(75, 33, 142);
/* oklch */ color: oklch(37.6% 0.166 294.5);
Tailwind
colors: {
  custom: {
    50: '#8461b0',
    500: '#4b218e',
    950: '#000000',
  },
}
SCSS
$custom: #4b218e;
$custom-light: #8461b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4b218e",
  "rgb": {
    "r": 75,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 263.119,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37633,
    "c": 0.16631,
    "h": 294.5
  },
  "luminance": 0.04537
}

Semantic roles & 50–950 ramp

primary
#4B218E
secondary
#92BA50
accent
#E542A7
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4B218E

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

Preview Lab → · Contrast checker → · Palette generator →

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