#4B228D#4B228D

#4B228D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.164 H 294.6°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#4B228D
RGBrgb(75, 34, 141)
HSLhsl(263, 61%, 34%)
HSVhsv(263, 76%, 55%)
CMYKcmyk(46.8%, 75.9%, 0%, 44.7%)
CIE-LABlab(25.45, 42.98, -52.03)
CIE-LCHlch(25.45, 67.49, 309.56°)
OKLaboklab(37.66% 0.0684 -0.1491)
OKLCHoklch(37.66% 0.164 294.6)
XYZxyz(8.2801, 4.5628, 25.6386)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B228D #648D22
analogous
#222E8D #4B228D #81228D
triadic
#4B228D #8D4B22 #228D4B
tetradic
#4B228D #8D222E #648D22 #228D81
square
#4B228D #8D222E #648D22 #228D81
split-complementary
#4B228D #8D8122 #2E8D22
monochromatic
#170A2A #31165C #4B228D #652EBE #8654D6

Accessibility & contrast

On white

10.98
#4B228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B228D
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B228D#FFFFFF#000000##FFFFFF
##4B228D1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#383E56
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4b228d;
/* rgb */ color: rgb(75, 34, 141);
/* oklch */ color: oklch(37.7% 0.164 294.6);
Tailwind
colors: {
  custom: {
    50: '#8461af',
    500: '#4b228d',
    950: '#000000',
  },
}
SCSS
$custom: #4b228d;
$custom-light: #8461af;
$custom-dark: #000000;
JSON
{
  "hex": "#4b228d",
  "rgb": {
    "r": 75,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 262.991,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37661,
    "c": 0.16404,
    "h": 294.6
  },
  "luminance": 0.04563
}

Semantic roles & 50–950 ramp

primary
#4B228D
secondary
#92B951
accent
#E444A7
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4B228D

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

Preview Lab → · Contrast checker → · Palette generator →

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