#4C238A#4C238A

#4C238A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.159 H 295.9°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#4C238A
RGBrgb(76, 35, 138)
HSLhsl(264, 60%, 34%)
HSVhsv(264, 75%, 54%)
CMYKcmyk(44.9%, 74.6%, 0%, 45.9%)
CIE-LABlab(25.48, 41.84, -50.11)
CIE-LCHlch(25.48, 65.28, 309.86°)
OKLaboklab(37.63% 0.0697 -0.1434)
OKLCHoklch(37.63% 0.159 295.9)
XYZxyz(8.1677, 4.5734, 24.4922)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C238A #618A23
analogous
#232E8A #4C238A #80238A
triadic
#4C238A #8A4C23 #238A4C
tetradic
#4C238A #8A232E #618A23 #238A80
square
#4C238A #8A232E #618A23 #238A80
split-complementary
#4C238A #8A8023 #2E8A23
monochromatic
#160A28 #311759 #4C238A #672FBB #8754D4

Accessibility & contrast

On white

10.97
#4C238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4C238A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C238A
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C238A#FFFFFF#000000##FFFFFF
##4C238A1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#3B3E54
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4c238a;
/* rgb */ color: rgb(76, 35, 138);
/* oklch */ color: oklch(37.6% 0.159 295.9);
Tailwind
colors: {
  custom: {
    50: '#8462ad',
    500: '#4c238a',
    950: '#000000',
  },
}
SCSS
$custom: #4c238a;
$custom-light: #8462ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4c238a",
  "rgb": {
    "r": 76,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 263.883,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37629,
    "c": 0.15947,
    "h": 295.9
  },
  "luminance": 0.04574
}

Semantic roles & 50–950 ramp

primary
#4C238A
secondary
#8FB751
accent
#E345A4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4C238A

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

Preview Lab → · Contrast checker → · Palette generator →

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