#4C267A#4C267A

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

Color values

HEX#4C267A
RGBrgb(76, 38, 122)
HSLhsl(267, 53%, 31%)
HSVhsv(267, 69%, 48%)
CMYKcmyk(37.7%, 68.9%, 0%, 52.2%)
CIE-LABlab(24.73, 35.87, -41.28)
CIE-LCHlch(24.73, 54.69, 310.99°)
OKLaboklab(36.68% 0.0693 -0.1175)
OKLCHoklch(36.68% 0.136 300.5)
XYZxyz(7.1856, 4.3278, 18.8654)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C267A #547A26
analogous
#262A7A #4C267A #76267A
triadic
#4C267A #7A4C26 #267A4C
tetradic
#4C267A #7A262A #547A26 #267A76
square
#4C267A #7A262A #547A26 #267A76
split-complementary
#4C267A #7A7626 #2A7A26
monochromatic
#12091D #2F174B #4C267A #6935A9 #8851C9

Accessibility & contrast

On white

11.26
#4C267A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C267A
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C267A#FFFFFF#000000##FFFFFF
##4C267A1.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#003A78
Tritanopia (blue-blind)
#42394C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4c267a;
/* rgb */ color: rgb(76, 38, 122);
/* oklch */ color: oklch(36.7% 0.136 300.5);
Tailwind
colors: {
  custom: {
    50: '#8263a1',
    500: '#4c267a',
    950: '#000000',
  },
}
SCSS
$custom: #4c267a;
$custom-light: #8263a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c267a",
  "rgb": {
    "r": 76,
    "g": 38,
    "b": 122
  },
  "hsl": {
    "h": 267.143,
    "s": 52.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36676,
    "c": 0.13643,
    "h": 300.5
  },
  "luminance": 0.04328
}

Semantic roles & 50–950 ramp

primary
#4C267A
secondary
#82AC50
accent
#DC4C9B
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4C267A

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

Preview Lab → · Contrast checker → · Palette generator →

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