#4C236D#4C236D

#4C236D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.2% C 0.125 H 306.5°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#4C236D
RGBrgb(76, 35, 109)
HSLhsl(273, 51%, 28%)
HSVhsv(273, 68%, 43%)
CMYKcmyk(30.3%, 67.9%, 0%, 57.3%)
CIE-LABlab(23.14, 34.06, -35.51)
CIE-LCHlch(23.14, 49.21, 313.81°)
OKLaboklab(35.23% 0.0744 -0.1005)
OKLCHoklch(35.23% 0.125 306.5)
XYZxyz(6.3413, 3.8428, 14.8727)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C236D #446D23
analogous
#27236D #4C236D #6D2369
triadic
#4C236D #6D4C23 #236D4C
tetradic
#4C236D #6D2723 #446D23 #23696D
square
#4C236D #6D2723 #446D23 #23696D
split-complementary
#4C236D #696D23 #236D27
monochromatic
#100717 #2C143F #4C236D #6C329B #8C47C4

Accessibility & contrast

On white

11.87
#4C236D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C236D
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C236D#FFFFFF#000000##FFFFFF
##4C236D1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366F
Deuteranopia (green-blind)
#12376B
Tritanopia (blue-blind)
#463344
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4c236d;
/* rgb */ color: rgb(76, 35, 109);
/* oklch */ color: oklch(35.2% 0.125 306.5);
Tailwind
colors: {
  custom: {
    50: '#816197',
    500: '#4c236d',
    950: '#000000',
  },
}
SCSS
$custom: #4c236d;
$custom-light: #816197;
$custom-dark: #000000;
JSON
{
  "hex": "#4c236d",
  "rgb": {
    "r": 76,
    "g": 35,
    "b": 109
  },
  "hsl": {
    "h": 273.243,
    "s": 51.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35226,
    "c": 0.12505,
    "h": 306.5
  },
  "luminance": 0.03843
}

Semantic roles & 50–950 ramp

primary
#4C236D
secondary
#71A04B
accent
#DB4D8C
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4C236D

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

Preview Lab → · Contrast checker → · Palette generator →

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