#4C267C#4C267C

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

Color values

HEX#4C267C
RGBrgb(76, 38, 124)
HSLhsl(267, 53%, 32%)
HSVhsv(267, 69%, 49%)
CMYKcmyk(38.7%, 69.4%, 0%, 51.4%)
CIE-LABlab(24.88, 36.42, -42.29)
CIE-LCHlch(24.88, 55.81, 310.73°)
OKLaboklab(36.84% 0.0691 -0.1205)
OKLCHoklch(36.84% 0.139 299.8)
XYZxyz(7.3108, 4.3779, 19.5247)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C267C #567C26
analogous
#262B7C #4C267C #77267C
triadic
#4C267C #7C4C26 #267C4C
tetradic
#4C267C #7C262B #567C26 #267C77
square
#4C267C #7C262B #567C26 #267C77
split-complementary
#4C267C #7C7726 #2B7C26
monochromatic
#13091E #2F184D #4C267C #6934AB #8752CA

Accessibility & contrast

On white

11.20
#4C267C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4C267C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C267C
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C267C#FFFFFF#000000##FFFFFF
##4C267C1.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#003A7A
Tritanopia (blue-blind)
#413A4D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4c267c;
/* rgb */ color: rgb(76, 38, 124);
/* oklch */ color: oklch(36.8% 0.139 299.8);
Tailwind
colors: {
  custom: {
    50: '#8263a3',
    500: '#4c267c',
    950: '#000000',
  },
}
SCSS
$custom: #4c267c;
$custom-light: #8263a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c267c",
  "rgb": {
    "r": 76,
    "g": 38,
    "b": 124
  },
  "hsl": {
    "h": 266.512,
    "s": 53.086,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36838,
    "c": 0.13887,
    "h": 299.8
  },
  "luminance": 0.04378
}

Semantic roles & 50–950 ramp

primary
#4C267C
secondary
#84AE50
accent
#DC4B9C
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4C267C

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

Preview Lab → · Contrast checker → · Palette generator →

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