#4C236E#4C236E

#4C236E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.3% C 0.126 H 306.1°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#4C236E
RGBrgb(76, 35, 110)
HSLhsl(273, 52%, 28%)
HSVhsv(273, 68%, 43%)
CMYKcmyk(30.9%, 68.2%, 0%, 56.9%)
CIE-LABlab(23.22, 34.32, -36.04)
CIE-LCHlch(23.22, 49.77, 313.60°)
OKLaboklab(35.3% 0.0743 -0.1021)
OKLCHoklch(35.3% 0.126 306.1)
XYZxyz(6.3954, 3.8644, 15.1578)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C236E #456E23
analogous
#26236E #4C236E #6E236A
triadic
#4C236E #6E4C23 #236E4C
tetradic
#4C236E #6E2623 #456E23 #236A6E
square
#4C236E #6E2623 #456E23 #236A6E
split-complementary
#4C236E #6A6E23 #236E26
monochromatic
#100717 #2C1440 #4C236E #6C329C #8C47C4

Accessibility & contrast

On white

11.85
#4C236E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4C236E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C236E
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C236E#FFFFFF#000000##FFFFFF
##4C236E1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003670
Deuteranopia (green-blind)
#11386C
Tritanopia (blue-blind)
#463345
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4c236e;
/* rgb */ color: rgb(76, 35, 110);
/* oklch */ color: oklch(35.3% 0.126 306.1);
Tailwind
colors: {
  custom: {
    50: '#816198',
    500: '#4c236e',
    950: '#000000',
  },
}
SCSS
$custom: #4c236e;
$custom-light: #816198;
$custom-dark: #000000;
JSON
{
  "hex": "#4c236e",
  "rgb": {
    "r": 76,
    "g": 35,
    "b": 110
  },
  "hsl": {
    "h": 272.8,
    "s": 51.724,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35302,
    "c": 0.12625,
    "h": 306.1
  },
  "luminance": 0.03864
}

Semantic roles & 50–950 ramp

primary
#4C236E
secondary
#72A14C
accent
#DB4D8D
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4C236E

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

Preview Lab → · Contrast checker → · Palette generator →

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