#4C229F#4C229F

#4C229F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.185 H 290.6°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#4C229F
RGBrgb(76, 34, 159)
HSLhsl(260, 65%, 38%)
HSVhsv(260, 79%, 62%)
CMYKcmyk(52.2%, 78.6%, 0%, 37.6%)
CIE-LABlab(27.25, 48.10, -60.15)
CIE-LCHlch(27.25, 77.02, 308.65°)
OKLaboklab(39.46% 0.0649 -0.1729)
OKLCHoklch(39.46% 0.185 290.6)
XYZxyz(9.8087, 5.1833, 33.2778)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C229F #759F22
analogous
#22369F #4C229F #8A229F
triadic
#4C229F #9F4C22 #229F4C
tetradic
#4C229F #9F2236 #759F22 #229F8A
square
#4C229F #9F2236 #759F22 #229F8A
split-complementary
#4C229F #9F8A22 #369F22
monochromatic
#1C0C3A #34176D #4C229F #642DD1 #895FDD

Accessibility & contrast

On white

10.31
#4C229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4C229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C229F
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C229F#FFFFFF#000000##FFFFFF
##4C229F1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c229f;
/* rgb */ color: rgb(76, 34, 159);
/* oklch */ color: oklch(39.5% 0.185 290.6);
Tailwind
colors: {
  custom: {
    50: '#8763bc',
    500: '#4c229f',
    950: '#000000',
  },
}
SCSS
$custom: #4c229f;
$custom-light: #8763bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c229f",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 260.16,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39464,
    "c": 0.18464,
    "h": 290.6
  },
  "luminance": 0.05184
}

Semantic roles & 50–950 ramp

primary
#4C229F
secondary
#9FC15B
accent
#E840AF
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4C229F

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

Preview Lab → · Contrast checker → · Palette generator →

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