#4C236F#4C236F

#4C236F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.4% C 0.127 H 305.6°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#4C236F
RGBrgb(76, 35, 111)
HSLhsl(272, 52%, 29%)
HSVhsv(272, 68%, 44%)
CMYKcmyk(31.5%, 68.5%, 0%, 56.5%)
CIE-LABlab(23.29, 34.58, -36.56)
CIE-LCHlch(23.29, 50.33, 313.41°)
OKLaboklab(35.38% 0.0742 -0.1036)
OKLCHoklch(35.38% 0.127 305.6)
XYZxyz(6.4501, 3.8863, 15.4462)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C236F #466F23
analogous
#26236F #4C236F #6F236C
triadic
#4C236F #6F4C23 #236F4C
tetradic
#4C236F #6F2623 #466F23 #236C6F
square
#4C236F #6F2623 #466F23 #236C6F
split-complementary
#4C236F #6C6F23 #236F26
monochromatic
#100717 #2C1440 #4C236F #6C329E #8B47C5

Accessibility & contrast

On white

11.82
#4C236F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4C236F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C236F
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C236F#FFFFFF#000000##FFFFFF
##4C236F1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003671
Deuteranopia (green-blind)
#0F386D
Tritanopia (blue-blind)
#463345
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4c236f;
/* rgb */ color: rgb(76, 35, 111);
/* oklch */ color: oklch(35.4% 0.127 305.6);
Tailwind
colors: {
  custom: {
    50: '#816199',
    500: '#4c236f',
    950: '#000000',
  },
}
SCSS
$custom: #4c236f;
$custom-light: #816199;
$custom-dark: #000000;
JSON
{
  "hex": "#4c236f",
  "rgb": {
    "r": 76,
    "g": 35,
    "b": 111
  },
  "hsl": {
    "h": 272.368,
    "s": 52.055,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35379,
    "c": 0.12744,
    "h": 305.6
  },
  "luminance": 0.03886
}

Semantic roles & 50–950 ramp

primary
#4C236F
secondary
#73A24C
accent
#DB4C8E
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4C236F

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

Preview Lab → · Contrast checker → · Palette generator →

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