#4B228B#4B228B

#4B228B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.162 H 295.2°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#4B228B
RGBrgb(75, 34, 139)
HSLhsl(263, 61%, 34%)
HSVhsv(263, 76%, 55%)
CMYKcmyk(46%, 75.5%, 0%, 45.5%)
CIE-LABlab(25.27, 42.43, -51.08)
CIE-LCHlch(25.27, 66.41, 309.71°)
OKLaboklab(37.48% 0.0689 -0.1463)
OKLCHoklch(37.48% 0.162 295.2)
XYZxyz(8.1326, 4.5038, 24.8619)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B228B #628B22
analogous
#222D8B #4B228B #80228B
triadic
#4B228B #8B4B22 #228B4B
tetradic
#4B228B #8B222D #628B22 #228B80
square
#4B228B #8B222D #628B22 #228B80
split-complementary
#4B228B #8B8022 #2D8B22
monochromatic
#160A29 #30165A #4B228B #662EBC #8553D5

Accessibility & contrast

On white

11.05
#4B228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4B228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B228B
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B228B#FFFFFF#000000##FFFFFF
##4B228B1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#393E55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4b228b;
/* rgb */ color: rgb(75, 34, 139);
/* oklch */ color: oklch(37.5% 0.162 295.2);
Tailwind
colors: {
  custom: {
    50: '#8461ae',
    500: '#4b228b',
    950: '#000000',
  },
}
SCSS
$custom: #4b228b;
$custom-light: #8461ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4b228b",
  "rgb": {
    "r": 75,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 263.429,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3748,
    "c": 0.16172,
    "h": 295.2
  },
  "luminance": 0.04504
}

Semantic roles & 50–950 ramp

primary
#4B228B
secondary
#90B850
accent
#E444A5
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4B228B

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

Preview Lab → · Contrast checker → · Palette generator →

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