#4C238C#4C238C

#4C238C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.162 H 295.3°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#4C238C
RGBrgb(76, 35, 140)
HSLhsl(263, 60%, 34%)
HSVhsv(263, 75%, 55%)
CMYKcmyk(45.7%, 75%, 0%, 45.1%)
CIE-LABlab(25.66, 42.39, -51.07)
CIE-LCHlch(25.66, 66.37, 309.69°)
OKLaboklab(37.81% 0.0692 -0.1462)
OKLCHoklch(37.81% 0.162 295.3)
XYZxyz(8.3139, 4.6318, 25.2618)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C238C #638C23
analogous
#232E8C #4C238C #81238C
triadic
#4C238C #8C4C23 #238C4C
tetradic
#4C238C #8C232E #638C23 #238C81
square
#4C238C #8C232E #638C23 #238C81
split-complementary
#4C238C #8C8123 #2E8C23
monochromatic
#170B2A #31175B #4C238C #672FBD #8755D4

Accessibility & contrast

On white

10.90
#4C238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4C238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C238C
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C238C#FFFFFF#000000##FFFFFF
##4C238C1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#3A3E55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4c238c;
/* rgb */ color: rgb(76, 35, 140);
/* oklch */ color: oklch(37.8% 0.162 295.3);
Tailwind
colors: {
  custom: {
    50: '#8562ae',
    500: '#4c238c',
    950: '#000000',
  },
}
SCSS
$custom: #4c238c;
$custom-light: #8562ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c238c",
  "rgb": {
    "r": 76,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 263.429,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37808,
    "c": 0.1618,
    "h": 295.3
  },
  "luminance": 0.04632
}

Semantic roles & 50–950 ramp

primary
#4C238C
secondary
#91B852
accent
#E345A5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4C238C

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

Preview Lab → · Contrast checker → · Palette generator →

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