#4C268D#4C268D

#4C268D is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.159 H 294.5°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#4C268D
RGBrgb(76, 38, 141)
HSLhsl(262, 58%, 35%)
HSVhsv(262, 73%, 55%)
CMYKcmyk(46.1%, 73%, 0%, 44.7%)
CIE-LABlab(26.29, 41.13, -50.66)
CIE-LCHlch(26.29, 65.26, 309.08°)
OKLaboklab(38.28% 0.0661 -0.1451)
OKLCHoklch(38.28% 0.159 294.5)
XYZxyz(8.4800, 4.8456, 25.6826)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C268D #678D26
analogous
#26338D #4C268D #80268D
triadic
#4C268D #8D4C26 #268D4C
tetradic
#4C268D #8D2633 #678D26 #268D80
square
#4C268D #8D2633 #678D26 #268D80
split-complementary
#4C268D #8D8026 #338D26
monochromatic
#180C2D #32195D #4C268D #6633BD #875BD3

Accessibility & contrast

On white

10.66
#4C268D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4C268D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C268D
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C268D#FFFFFF#000000##FFFFFF
##4C268D1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#003C8B
Tritanopia (blue-blind)
#3A4057
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c268d;
/* rgb */ color: rgb(76, 38, 141);
/* oklch */ color: oklch(38.3% 0.159 294.5);
Tailwind
colors: {
  custom: {
    50: '#8464af',
    500: '#4c268d',
    950: '#000000',
  },
}
SCSS
$custom: #4c268d;
$custom-light: #8464af;
$custom-dark: #000000;
JSON
{
  "hex": "#4c268d",
  "rgb": {
    "r": 76,
    "g": 38,
    "b": 141
  },
  "hsl": {
    "h": 262.136,
    "s": 57.542,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38282,
    "c": 0.15941,
    "h": 294.5
  },
  "luminance": 0.04846
}

Semantic roles & 50–950 ramp

primary
#4C268D
secondary
#94B857
accent
#E147A8
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4C268D

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

Preview Lab → · Contrast checker → · Palette generator →

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