#4C267F#4C267F

#4C267F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.1% C 0.143 H 298.8°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#4C267F
RGBrgb(76, 38, 127)
HSLhsl(266, 54%, 32%)
HSVhsv(266, 70%, 50%)
CMYKcmyk(40.2%, 70.1%, 0%, 50.2%)
CIE-LABlab(25.12, 37.24, -43.80)
CIE-LCHlch(25.12, 57.50, 310.37°)
OKLaboklab(37.08% 0.0687 -0.1249)
OKLCHoklch(37.08% 0.143 298.8)
XYZxyz(7.5034, 4.4549, 20.5391)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C267F #597F26
analogous
#262D7F #4C267F #78267F
triadic
#4C267F #7F4C26 #267F4C
tetradic
#4C267F #7F262D #597F26 #267F78
square
#4C267F #7F262D #597F26 #267F78
split-complementary
#4C267F #7F7826 #2D7F26
monochromatic
#140A21 #301850 #4C267F #6834AE #8754CC

Accessibility & contrast

On white

11.11
#4C267F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4C267F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C267F
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C267F#FFFFFF#000000##FFFFFF
##4C267F1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#403B4F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4c267f;
/* rgb */ color: rgb(76, 38, 127);
/* oklch */ color: oklch(37.1% 0.143 298.8);
Tailwind
colors: {
  custom: {
    50: '#8363a5',
    500: '#4c267f',
    950: '#000000',
  },
}
SCSS
$custom: #4c267f;
$custom-light: #8363a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c267f",
  "rgb": {
    "r": 76,
    "g": 38,
    "b": 127
  },
  "hsl": {
    "h": 265.618,
    "s": 53.939,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37084,
    "c": 0.14254,
    "h": 298.8
  },
  "luminance": 0.04455
}

Semantic roles & 50–950 ramp

primary
#4C267F
secondary
#87B051
accent
#DD4A9F
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4C267F

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

Preview Lab → · Contrast checker → · Palette generator →

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