#4C237D#4C237D

#4C237D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.144 H 300.1°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#4C237D
RGBrgb(76, 35, 125)
HSLhsl(267, 56%, 31%)
HSVhsv(267, 72%, 49%)
CMYKcmyk(39.2%, 72%, 0%, 51%)
CIE-LABlab(24.38, 38.30, -43.74)
CIE-LCHlch(24.38, 58.14, 311.21°)
OKLaboklab(36.51% 0.0723 -0.1247)
OKLCHoklch(36.51% 0.144 300.1)
XYZxyz(7.2823, 4.2192, 19.8288)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C237D #547D23
analogous
#23277D #4C237D #79237D
triadic
#4C237D #7D4C23 #237D4C
tetradic
#4C237D #7D2327 #547D23 #237D79
square
#4C237D #7D2327 #547D23 #237D79
split-complementary
#4C237D #7D7923 #277D23
monochromatic
#12081D #2F164D #4C237D #6930AD #884DCD

Accessibility & contrast

On white

11.39
#4C237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4C237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C237D
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C237D#FFFFFF#000000##FFFFFF
##4C237D1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00397B
Tritanopia (blue-blind)
#41394D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c237d;
/* rgb */ color: rgb(76, 35, 125);
/* oklch */ color: oklch(36.5% 0.144 300.1);
Tailwind
colors: {
  custom: {
    50: '#8361a3',
    500: '#4c237d',
    950: '#000000',
  },
}
SCSS
$custom: #4c237d;
$custom-light: #8361a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c237d",
  "rgb": {
    "r": 76,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 267.333,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36506,
    "c": 0.14416,
    "h": 300.1
  },
  "luminance": 0.04219
}

Semantic roles & 50–950 ramp

primary
#4C237D
secondary
#82AF4C
accent
#E0489B
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C237D

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

Preview Lab → · Contrast checker → · Palette generator →

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