#4C237A#4C237A

#4C237A is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.141 H 301.2°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#4C237A
RGBrgb(76, 35, 122)
HSLhsl(268, 55%, 31%)
HSVhsv(268, 71%, 48%)
CMYKcmyk(37.7%, 71.3%, 0%, 52.2%)
CIE-LABlab(24.14, 37.49, -42.23)
CIE-LCHlch(24.14, 56.47, 311.60°)
OKLaboklab(36.26% 0.0728 -0.1203)
OKLCHoklch(36.26% 0.141 301.2)
XYZxyz(7.0935, 4.1437, 18.8347)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C237A #517A23
analogous
#23257A #4C237A #77237A
triadic
#4C237A #7A4C23 #237A4C
tetradic
#4C237A #7A2325 #517A23 #237A77
square
#4C237A #7A2325 #517A23 #237A77
split-complementary
#4C237A #7A7723 #257A23
monochromatic
#11081B #2E154A #4C237A #6A31AA #884CCC

Accessibility & contrast

On white

11.48
#4C237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4C237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C237A
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C237A#FFFFFF#000000##FFFFFF
##4C237A1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#003978
Tritanopia (blue-blind)
#42374B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c237a;
/* rgb */ color: rgb(76, 35, 122);
/* oklch */ color: oklch(36.3% 0.141 301.2);
Tailwind
colors: {
  custom: {
    50: '#8261a1',
    500: '#4c237a',
    950: '#000000',
  },
}
SCSS
$custom: #4c237a;
$custom-light: #8261a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c237a",
  "rgb": {
    "r": 76,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 268.276,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36256,
    "c": 0.14061,
    "h": 301.2
  },
  "luminance": 0.04144
}

Semantic roles & 50–950 ramp

primary
#4C237A
secondary
#7FAD4C
accent
#DF4998
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C237A

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

Preview Lab → · Contrast checker → · Palette generator →

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