#4B229D#4B229D

#4B229D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.182 H 290.5°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#4B229D
RGBrgb(75, 34, 157)
HSLhsl(260, 64%, 37%)
HSVhsv(260, 78%, 62%)
CMYKcmyk(52.2%, 78.3%, 0%, 38.4%)
CIE-LABlab(26.94, 47.41, -59.44)
CIE-LCHlch(26.94, 76.03, 308.58°)
OKLaboklab(39.17% 0.0639 -0.1708)
OKLCHoklch(39.17% 0.182 290.5)
XYZxyz(9.5577, 5.0738, 32.3675)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B229D #749D22
analogous
#22369D #4B229D #89229D
triadic
#4B229D #9D4B22 #229D4B
tetradic
#4B229D #9D2236 #749D22 #229D89
square
#4B229D #9D2236 #749D22 #229D89
split-complementary
#4B229D #9D8922 #369D22
monochromatic
#1B0C38 #33176B #4B229D #632DCF #885DDC

Accessibility & contrast

On white

10.42
#4B229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4B229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B229D
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B229D#FFFFFF#000000##FFFFFF
##4B229D1.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A0
Deuteranopia (green-blind)
#003D9B
Tritanopia (blue-blind)
#2E455F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4b229d;
/* rgb */ color: rgb(75, 34, 157);
/* oklch */ color: oklch(39.2% 0.182 290.5);
Tailwind
colors: {
  custom: {
    50: '#8662bb',
    500: '#4b229d',
    950: '#000000',
  },
}
SCSS
$custom: #4b229d;
$custom-light: #8662bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4b229d",
  "rgb": {
    "r": 75,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 260,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39165,
    "c": 0.18239,
    "h": 290.5
  },
  "luminance": 0.05074
}

Semantic roles & 50–950 ramp

primary
#4B229D
secondary
#9EC15A
accent
#E740B0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4B229D

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

Preview Lab → · Contrast checker → · Palette generator →

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