#4C237C#4C237C

#4C237C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.143 H 300.5°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#4C237C
RGBrgb(76, 35, 124)
HSLhsl(268, 56%, 31%)
HSVhsv(268, 72%, 49%)
CMYKcmyk(38.7%, 71.8%, 0%, 51.4%)
CIE-LABlab(24.30, 38.03, -43.24)
CIE-LCHlch(24.30, 57.58, 311.33°)
OKLaboklab(36.42% 0.0725 -0.1232)
OKLCHoklch(36.42% 0.143 300.5)
XYZxyz(7.2187, 4.1937, 19.4940)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C237C #537C23
analogous
#23267C #4C237C #78237C
triadic
#4C237C #7C4C23 #237C4C
tetradic
#4C237C #7C2326 #537C23 #237C78
square
#4C237C #7C2326 #537C23 #237C78
split-complementary
#4C237C #7C7823 #267C23
monochromatic
#11081D #2F164C #4C237C #6930AC #884DCD

Accessibility & contrast

On white

11.42
#4C237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C237C
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C237C#FFFFFF#000000##FFFFFF
##4C237C1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00397A
Tritanopia (blue-blind)
#41384C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c237c;
/* rgb */ color: rgb(76, 35, 124);
/* oklch */ color: oklch(36.4% 0.143 300.5);
Tailwind
colors: {
  custom: {
    50: '#8361a3',
    500: '#4c237c',
    950: '#000000',
  },
}
SCSS
$custom: #4c237c;
$custom-light: #8361a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c237c",
  "rgb": {
    "r": 76,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 267.64,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36422,
    "c": 0.14298,
    "h": 300.5
  },
  "luminance": 0.04194
}

Semantic roles & 50–950 ramp

primary
#4C237C
secondary
#81AF4C
accent
#DF499A
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C237C

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

Preview Lab → · Contrast checker → · Palette generator →

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