#4C238D#4C238D

#4C238D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.163 H 295.0°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#4C238D
RGBrgb(76, 35, 141)
HSLhsl(263, 60%, 35%)
HSVhsv(263, 75%, 55%)
CMYKcmyk(46.1%, 75.2%, 0%, 44.7%)
CIE-LABlab(25.75, 42.66, -51.55)
CIE-LCHlch(25.75, 66.91, 309.61°)
OKLaboklab(37.9% 0.069 -0.1476)
OKLCHoklch(37.9% 0.163 295)
XYZxyz(8.3879, 4.6614, 25.6519)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C238D #648D23
analogous
#232F8D #4C238D #81238D
triadic
#4C238D #8D4C23 #238D4C
tetradic
#4C238D #8D232F #648D23 #238D81
square
#4C238D #8D232F #648D23 #238D81
split-complementary
#4C238D #8D8123 #2F8D23
monochromatic
#170B2B #32175C #4C238D #662FBE #8755D5

Accessibility & contrast

On white

10.87
#4C238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C238D
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C238D#FFFFFF#000000##FFFFFF
##4C238D1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#3A3F56
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4c238d;
/* rgb */ color: rgb(76, 35, 141);
/* oklch */ color: oklch(37.9% 0.163 295.0);
Tailwind
colors: {
  custom: {
    50: '#8562af',
    500: '#4c238d',
    950: '#000000',
  },
}
SCSS
$custom: #4c238d;
$custom-light: #8562af;
$custom-dark: #000000;
JSON
{
  "hex": "#4c238d",
  "rgb": {
    "r": 76,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 263.208,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37898,
    "c": 0.16297,
    "h": 295
  },
  "luminance": 0.04662
}

Semantic roles & 50–950 ramp

primary
#4C238D
secondary
#91B953
accent
#E344A6
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4C238D

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

Preview Lab → · Contrast checker → · Palette generator →

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