#4C238E#4C238E

#4C238E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.164 H 294.8°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#4C238E
RGBrgb(76, 35, 142)
HSLhsl(263, 60%, 35%)
HSVhsv(263, 75%, 56%)
CMYKcmyk(46.5%, 75.4%, 0%, 44.3%)
CIE-LABlab(25.84, 42.94, -52.02)
CIE-LCHlch(25.84, 67.45, 309.54°)
OKLaboklab(37.99% 0.0688 -0.149)
OKLCHoklch(37.99% 0.164 294.8)
XYZxyz(8.4627, 4.6913, 26.0456)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C238E #658E23
analogous
#232F8E #4C238E #82238E
triadic
#4C238E #8E4C23 #238E4C
tetradic
#4C238E #8E232F #658E23 #238E82
square
#4C238E #8E232F #658E23 #238E82
split-complementary
#4C238E #8E8223 #2F8E23
monochromatic
#170B2C #32175D #4C238E #662FBF #8756D5

Accessibility & contrast

On white

10.83
#4C238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4C238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C238E
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C238E#FFFFFF#000000##FFFFFF
##4C238E1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#393F56
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4c238e;
/* rgb */ color: rgb(76, 35, 142);
/* oklch */ color: oklch(38.0% 0.164 294.8);
Tailwind
colors: {
  custom: {
    50: '#8562b0',
    500: '#4c238e',
    950: '#000000',
  },
}
SCSS
$custom: #4c238e;
$custom-light: #8562b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c238e",
  "rgb": {
    "r": 76,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 262.991,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37989,
    "c": 0.16413,
    "h": 294.8
  },
  "luminance": 0.04692
}

Semantic roles & 50–950 ramp

primary
#4C238E
secondary
#92B953
accent
#E444A7
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4C238E

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

Preview Lab → · Contrast checker → · Palette generator →

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