#4C237F#4C237F

#4C237F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.147 H 299.4°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#4C237F
RGBrgb(76, 35, 127)
HSLhsl(267, 57%, 32%)
HSVhsv(267, 72%, 50%)
CMYKcmyk(40.2%, 72.4%, 0%, 50.2%)
CIE-LABlab(24.55, 38.84, -44.74)
CIE-LCHlch(24.55, 59.24, 310.96°)
OKLaboklab(36.67% 0.072 -0.1276)
OKLCHoklch(36.67% 0.147 299.4)
XYZxyz(7.4113, 4.2708, 20.5084)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C237F #567F23
analogous
#23287F #4C237F #7A237F
triadic
#4C237F #7F4C23 #237F4C
tetradic
#4C237F #7F2328 #567F23 #237F7A
square
#4C237F #7F2328 #567F23 #237F7A
split-complementary
#4C237F #7F7A23 #287F23
monochromatic
#13091F #2F164F #4C237F #6930AF #874ECE

Accessibility & contrast

On white

11.33
#4C237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4C237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C237F
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C237F#FFFFFF#000000##FFFFFF
##4C237F1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#40394E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c237f;
/* rgb */ color: rgb(76, 35, 127);
/* oklch */ color: oklch(36.7% 0.147 299.4);
Tailwind
colors: {
  custom: {
    50: '#8361a5',
    500: '#4c237f',
    950: '#000000',
  },
}
SCSS
$custom: #4c237f;
$custom-light: #8361a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c237f",
  "rgb": {
    "r": 76,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 266.739,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36674,
    "c": 0.14654,
    "h": 299.4
  },
  "luminance": 0.04271
}

Semantic roles & 50–950 ramp

primary
#4C237F
secondary
#84B14C
accent
#E0489C
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C237F

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

Preview Lab → · Contrast checker → · Palette generator →

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