#4B228E#4B228E

#4B228E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.165 H 294.4°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#4B228E
RGBrgb(75, 34, 142)
HSLhsl(263, 61%, 35%)
HSVhsv(263, 76%, 56%)
CMYKcmyk(47.2%, 76.1%, 0%, 44.3%)
CIE-LABlab(25.54, 43.26, -52.51)
CIE-LCHlch(25.54, 68.03, 309.48°)
OKLaboklab(37.75% 0.0681 -0.1505)
OKLCHoklch(37.75% 0.165 294.4)
XYZxyz(8.3548, 4.5927, 26.0322)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B228E #658E22
analogous
#222F8E #4B228E #81228E
triadic
#4B228E #8E4B22 #228E4B
tetradic
#4B228E #8E222F #658E22 #228E81
square
#4B228E #8E222F #658E22 #228E81
split-complementary
#4B228E #8E8122 #2F8E22
monochromatic
#170A2B #31165D #4B228E #652EBF #8654D6

Accessibility & contrast

On white

10.95
#4B228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4B228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B228E
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B228E#FFFFFF#000000##FFFFFF
##4B228E1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#373F56
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4b228e;
/* rgb */ color: rgb(75, 34, 142);
/* oklch */ color: oklch(37.8% 0.165 294.4);
Tailwind
colors: {
  custom: {
    50: '#8461b0',
    500: '#4b228e',
    950: '#000000',
  },
}
SCSS
$custom: #4b228e;
$custom-light: #8461b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4b228e",
  "rgb": {
    "r": 75,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 262.778,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37753,
    "c": 0.1652,
    "h": 294.4
  },
  "luminance": 0.04593
}

Semantic roles & 50–950 ramp

primary
#4B228E
secondary
#92BA52
accent
#E443A7
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4B228E

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

Preview Lab → · Contrast checker → · Palette generator →

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