#4C268B#4C268B

#4C268B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.157 H 295.1°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#4C268B
RGBrgb(76, 38, 139)
HSLhsl(263, 57%, 35%)
HSVhsv(263, 73%, 55%)
CMYKcmyk(45.3%, 72.7%, 0%, 45.5%)
CIE-LABlab(26.12, 40.58, -49.70)
CIE-LCHlch(26.12, 64.16, 309.23°)
OKLaboklab(38.11% 0.0665 -0.1422)
OKLCHoklch(38.11% 0.157 295.1)
XYZxyz(8.3326, 4.7866, 24.9060)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C268B #658B26
analogous
#26338B #4C268B #7E268B
triadic
#4C268B #8B4C26 #268B4C
tetradic
#4C268B #8B2633 #658B26 #268B7E
square
#4C268B #8B2633 #658B26 #268B7E
split-complementary
#4C268B #8B7E26 #338B26
monochromatic
#170C2B #32195B #4C268B #6633BB #875AD2

Accessibility & contrast

On white

10.73
#4C268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4C268B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C268B
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C268B#FFFFFF#000000##FFFFFF
##4C268B1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003C89
Tritanopia (blue-blind)
#3B3F56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c268b;
/* rgb */ color: rgb(76, 38, 139);
/* oklch */ color: oklch(38.1% 0.157 295.1);
Tailwind
colors: {
  custom: {
    50: '#8464ae',
    500: '#4c268b',
    950: '#000000',
  },
}
SCSS
$custom: #4c268b;
$custom-light: #8464ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c268b",
  "rgb": {
    "r": 76,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 262.574,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38106,
    "c": 0.15702,
    "h": 295.1
  },
  "luminance": 0.04787
}

Semantic roles & 50–950 ramp

primary
#4C268B
secondary
#92B756
accent
#E047A7
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4C268B

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

Preview Lab → · Contrast checker → · Palette generator →

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