#4B229F#4B229F

#4B229F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.4% C 0.185 H 290.1°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#4B229F
RGBrgb(75, 34, 159)
HSLhsl(260, 65%, 38%)
HSVhsv(260, 79%, 62%)
CMYKcmyk(52.8%, 78.6%, 0%, 37.6%)
CIE-LABlab(27.14, 47.96, -60.34)
CIE-LCHlch(27.14, 77.08, 308.48°)
OKLaboklab(39.36% 0.0633 -0.1734)
OKLCHoklch(39.36% 0.185 290.1)
XYZxyz(9.7299, 5.1427, 33.2741)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B229F #769F22
analogous
#22379F #4B229F #89229F
triadic
#4B229F #9F4B22 #229F4B
tetradic
#4B229F #9F2237 #769F22 #229F89
square
#4B229F #9F2237 #769F22 #229F89
split-complementary
#4B229F #9F8922 #379F22
monochromatic
#1B0C3A #33176D #4B229F #632DD1 #885FDD

Accessibility & contrast

On white

10.35
#4B229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4B229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B229F
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B229F#FFFFFF#000000##FFFFFF
##4B229F1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#003D9D
Tritanopia (blue-blind)
#2C4660
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4b229f;
/* rgb */ color: rgb(75, 34, 159);
/* oklch */ color: oklch(39.4% 0.185 290.1);
Tailwind
colors: {
  custom: {
    50: '#8762bc',
    500: '#4b229f',
    950: '#000000',
  },
}
SCSS
$custom: #4b229f;
$custom-light: #8762bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4b229f",
  "rgb": {
    "r": 75,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 259.68,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39359,
    "c": 0.18465,
    "h": 290.1
  },
  "luminance": 0.05143
}

Semantic roles & 50–950 ramp

primary
#4B229F
secondary
#A0C15B
accent
#E840B1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4B229F

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

Preview Lab → · Contrast checker → · Palette generator →

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