#4C267B#4C267B

#4C267B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.8% C 0.138 H 300.2°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#4C267B
RGBrgb(76, 38, 123)
HSLhsl(267, 53%, 32%)
HSVhsv(267, 69%, 48%)
CMYKcmyk(38.2%, 69.1%, 0%, 51.8%)
CIE-LABlab(24.80, 36.15, -41.79)
CIE-LCHlch(24.80, 55.25, 310.86°)
OKLaboklab(36.76% 0.0692 -0.119)
OKLCHoklch(36.76% 0.138 300.2)
XYZxyz(7.2479, 4.3527, 19.1934)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C267B #557B26
analogous
#262A7B #4C267B #77267B
triadic
#4C267B #7B4C26 #267B4C
tetradic
#4C267B #7B262A #557B26 #267B77
square
#4C267B #7B262A #557B26 #267B77
split-complementary
#4C267B #7B7726 #2A7B26
monochromatic
#12091D #2F184C #4C267B #6934AA #8752CA

Accessibility & contrast

On white

11.23
#4C267B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4C267B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C267B
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C267B#FFFFFF#000000##FFFFFF
##4C267B1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#003A79
Tritanopia (blue-blind)
#42394D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4c267b;
/* rgb */ color: rgb(76, 38, 123);
/* oklch */ color: oklch(36.8% 0.138 300.2);
Tailwind
colors: {
  custom: {
    50: '#8263a2',
    500: '#4c267b',
    950: '#000000',
  },
}
SCSS
$custom: #4c267b;
$custom-light: #8263a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c267b",
  "rgb": {
    "r": 76,
    "g": 38,
    "b": 123
  },
  "hsl": {
    "h": 266.824,
    "s": 52.795,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36757,
    "c": 0.13765,
    "h": 300.2
  },
  "luminance": 0.04353
}

Semantic roles & 50–950 ramp

primary
#4C267B
secondary
#83AD50
accent
#DC4C9C
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4C267B

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

Preview Lab → · Contrast checker → · Palette generator →

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