#4C26A4#4C26A4

#4C26A4 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.186 H 288.9°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#4C26A4
RGBrgb(76, 38, 164)
HSLhsl(258, 62%, 40%)
HSVhsv(258, 77%, 64%)
CMYKcmyk(53.7%, 76.8%, 0%, 35.7%)
CIE-LABlab(28.39, 47.62, -61.32)
CIE-LCHlch(28.39, 77.63, 307.83°)
OKLaboklab(40.4% 0.0604 -0.1763)
OKLCHoklch(40.4% 0.186 288.9)
XYZxyz(10.3725, 5.6026, 35.6496)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C26A4 #7EA426
analogous
#263FA4 #4C26A4 #8B26A4
triadic
#4C26A4 #A44C26 #26A44C
tetradic
#4C26A4 #A4263F #7EA426 #26A48B
square
#4C26A4 #A4263F #7EA426 #26A48B
split-complementary
#4C26A4 #A48B26 #3FA426
monochromatic
#1E0F41 #351A72 #4C26A4 #6537D1 #8B68DC

Accessibility & contrast

On white

9.90
#4C26A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4C26A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C26A4
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C26A4#FFFFFF#000000##FFFFFF
##4C26A41.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A8
Deuteranopia (green-blind)
#0040A2
Tritanopia (blue-blind)
#2A4964
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4c26a4;
/* rgb */ color: rgb(76, 38, 164);
/* oklch */ color: oklch(40.4% 0.186 288.9);
Tailwind
colors: {
  custom: {
    50: '#8865c0',
    500: '#4c26a4',
    950: '#000000',
  },
}
SCSS
$custom: #4c26a4;
$custom-light: #8865c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c26a4",
  "rgb": {
    "r": 76,
    "g": 38,
    "b": 164
  },
  "hsl": {
    "h": 258.095,
    "s": 62.376,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40404,
    "c": 0.18637,
    "h": 288.9
  },
  "luminance": 0.05603
}

Semantic roles & 50–950 ramp

primary
#4C26A4
secondary
#A6C264
accent
#E542B4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C26A4

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

Preview Lab → · Contrast checker → · Palette generator →

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