#4C227F#4C227F

#4C227F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.148 H 299.6°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#4C227F
RGBrgb(76, 34, 127)
HSLhsl(267, 58%, 32%)
HSVhsv(267, 73%, 50%)
CMYKcmyk(40.2%, 73.2%, 0%, 50.2%)
CIE-LABlab(24.36, 39.35, -45.04)
CIE-LCHlch(24.36, 59.81, 311.15°)
OKLaboklab(36.54% 0.0731 -0.1285)
OKLCHoklch(36.54% 0.148 299.6)
XYZxyz(7.3823, 4.2128, 20.4988)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C227F #557F22
analogous
#22277F #4C227F #7B227F
triadic
#4C227F #7F4C22 #227F4C
tetradic
#4C227F #7F2227 #557F22 #227F7B
square
#4C227F #7F2227 #557F22 #227F7B
split-complementary
#4C227F #7F7B22 #277F22
monochromatic
#12081E #2F154F #4C227F #692FAF #874CCF

Accessibility & contrast

On white

11.40
#4C227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4C227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C227F
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C227F#FFFFFF#000000##FFFFFF
##4C227F1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#40394E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c227f;
/* rgb */ color: rgb(76, 34, 127);
/* oklch */ color: oklch(36.5% 0.148 299.6);
Tailwind
colors: {
  custom: {
    50: '#8361a5',
    500: '#4c227f',
    950: '#000000',
  },
}
SCSS
$custom: #4c227f;
$custom-light: #8361a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c227f",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 267.097,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36543,
    "c": 0.14783,
    "h": 299.6
  },
  "luminance": 0.04213
}

Semantic roles & 50–950 ramp

primary
#4C227F
secondary
#83B24B
accent
#E1479B
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C227F

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

Preview Lab → · Contrast checker → · Palette generator →

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