#4C236A#4C236A

#4C236A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.0% C 0.121 H 307.9°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#4C236A
RGBrgb(76, 35, 106)
HSLhsl(275, 50%, 28%)
HSVhsv(275, 67%, 42%)
CMYKcmyk(28.3%, 67%, 0%, 58.4%)
CIE-LABlab(22.93, 33.29, -33.92)
CIE-LCHlch(22.93, 47.52, 314.47°)
OKLaboklab(35% 0.0746 -0.0958)
OKLCHoklch(35% 0.121 307.9)
XYZxyz(6.1825, 3.7793, 14.0366)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C236A #416A23
analogous
#28236A #4C236A #6A2364
triadic
#4C236A #6A4C23 #236A4C
tetradic
#4C236A #6A2823 #416A23 #23646A
square
#4C236A #6A2823 #416A23 #23646A
split-complementary
#4C236A #646A23 #236A28
monochromatic
#100817 #2B143C #4C236A #6D3298 #8D46C2

Accessibility & contrast

On white

11.96
#4C236A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4C236A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C236A
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C236A#FFFFFF#000000##FFFFFF
##4C236A1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356C
Deuteranopia (green-blind)
#163768
Tritanopia (blue-blind)
#473143
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4c236a;
/* rgb */ color: rgb(76, 35, 106);
/* oklch */ color: oklch(35.0% 0.121 307.9);
Tailwind
colors: {
  custom: {
    50: '#816195',
    500: '#4c236a',
    950: '#000000',
  },
}
SCSS
$custom: #4c236a;
$custom-light: #816195;
$custom-dark: #000000;
JSON
{
  "hex": "#4c236a",
  "rgb": {
    "r": 76,
    "g": 35,
    "b": 106
  },
  "hsl": {
    "h": 274.648,
    "s": 50.355,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35,
    "c": 0.12144,
    "h": 307.9
  },
  "luminance": 0.03779
}

Semantic roles & 50–950 ramp

primary
#4C236A
secondary
#6E9D4B
accent
#DA4E89
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4C236A

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

Preview Lab → · Contrast checker → · Palette generator →

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