#4B229C#4B229C

#4B229C is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.181 H 290.8°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#4B229C
RGBrgb(75, 34, 156)
HSLhsl(260, 64%, 37%)
HSVhsv(260, 78%, 61%)
CMYKcmyk(51.9%, 78.2%, 0%, 38.8%)
CIE-LABlab(26.85, 47.13, -58.98)
CIE-LCHlch(26.85, 75.50, 308.63°)
OKLaboklab(39.07% 0.0642 -0.1695)
OKLCHoklch(39.07% 0.181 290.8)
XYZxyz(9.4727, 5.0398, 31.9197)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B229C #739C22
analogous
#22369C #4B229C #88229C
triadic
#4B229C #9C4B22 #229C4B
tetradic
#4B229C #9C2236 #739C22 #229C88
square
#4B229C #9C2236 #739C22 #229C88
split-complementary
#4B229C #9C8822 #369C22
monochromatic
#1B0C38 #33176A #4B229C #632DCE #875DDC

Accessibility & contrast

On white

10.46
#4B229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B229C
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B229C#FFFFFF#000000##FFFFFF
##4B229C1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419F
Deuteranopia (green-blind)
#003D9A
Tritanopia (blue-blind)
#2E445E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4b229c;
/* rgb */ color: rgb(75, 34, 156);
/* oklch */ color: oklch(39.1% 0.181 290.8);
Tailwind
colors: {
  custom: {
    50: '#8662ba',
    500: '#4b229c',
    950: '#000000',
  },
}
SCSS
$custom: #4b229c;
$custom-light: #8662ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4b229c",
  "rgb": {
    "r": 75,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 260.164,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39069,
    "c": 0.18125,
    "h": 290.8
  },
  "luminance": 0.0504
}

Semantic roles & 50–950 ramp

primary
#4B229C
secondary
#9EC05A
accent
#E741AF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4B229C

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

Preview Lab → · Contrast checker → · Palette generator →

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