#4B228F#4B228F

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

Color values

HEX#4B228F
RGBrgb(75, 34, 143)
HSLhsl(263, 62%, 35%)
HSVhsv(263, 76%, 56%)
CMYKcmyk(47.6%, 76.2%, 0%, 43.9%)
CIE-LABlab(25.63, 43.53, -52.98)
CIE-LCHlch(25.63, 68.57, 309.41°)
OKLaboklab(37.85% 0.0679 -0.1519)
OKLCHoklch(37.85% 0.166 294.1)
XYZxyz(8.4302, 4.6228, 26.4294)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B228F #668F22
analogous
#222F8F #4B228F #82228F
triadic
#4B228F #8F4B22 #228F4B
tetradic
#4B228F #8F222F #668F22 #228F82
square
#4B228F #8F222F #668F22 #228F82
split-complementary
#4B228F #8F8222 #2F8F22
monochromatic
#170A2C #31165E #4B228F #652EC0 #8655D7

Accessibility & contrast

On white

10.91
#4B228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B228F
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B228F#FFFFFF#000000##FFFFFF
##4B228F1.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#373F57
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4b228f;
/* rgb */ color: rgb(75, 34, 143);
/* oklch */ color: oklch(37.8% 0.166 294.1);
Tailwind
colors: {
  custom: {
    50: '#8462b1',
    500: '#4b228f',
    950: '#000000',
  },
}
SCSS
$custom: #4b228f;
$custom-light: #8462b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4b228f",
  "rgb": {
    "r": 75,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 262.569,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37845,
    "c": 0.16635,
    "h": 294.1
  },
  "luminance": 0.04623
}

Semantic roles & 50–950 ramp

primary
#4B228F
secondary
#93BA52
accent
#E543A8
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4B228F

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

Preview Lab → · Contrast checker → · Palette generator →

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