#4C267E#4C267E

#4C267E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.0% C 0.141 H 299.1°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#4C267E
RGBrgb(76, 38, 126)
HSLhsl(266, 54%, 32%)
HSVhsv(266, 70%, 49%)
CMYKcmyk(39.7%, 69.8%, 0%, 50.6%)
CIE-LABlab(25.04, 36.97, -43.30)
CIE-LCHlch(25.04, 56.93, 310.49°)
OKLaboklab(37% 0.0688 -0.1234)
OKLCHoklch(37% 0.141 299.1)
XYZxyz(7.4386, 4.4290, 20.1976)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C267E #587E26
analogous
#262C7E #4C267E #78267E
triadic
#4C267E #7E4C26 #267E4C
tetradic
#4C267E #7E262C #587E26 #267E78
square
#4C267E #7E262C #587E26 #267E78
split-complementary
#4C267E #7E7826 #2C7E26
monochromatic
#130A20 #30184F #4C267E #6834AD #8753CB

Accessibility & contrast

On white

11.14
#4C267E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C267E
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C267E#FFFFFF#000000##FFFFFF
##4C267E1.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#403B4E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4c267e;
/* rgb */ color: rgb(76, 38, 126);
/* oklch */ color: oklch(37.0% 0.141 299.1);
Tailwind
colors: {
  custom: {
    50: '#8363a4',
    500: '#4c267e',
    950: '#000000',
  },
}
SCSS
$custom: #4c267e;
$custom-light: #8363a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c267e",
  "rgb": {
    "r": 76,
    "g": 38,
    "b": 126
  },
  "hsl": {
    "h": 265.909,
    "s": 53.659,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37002,
    "c": 0.14131,
    "h": 299.1
  },
  "luminance": 0.04429
}

Semantic roles & 50–950 ramp

primary
#4C267E
secondary
#86B050
accent
#DD4B9E
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4C267E

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

Preview Lab → · Contrast checker → · Palette generator →

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