#4C26A5#4C26A5

#4C26A5 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.188 H 288.7°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#4C26A5
RGBrgb(76, 38, 165)
HSLhsl(258, 63%, 40%)
HSVhsv(258, 77%, 65%)
CMYKcmyk(53.9%, 77%, 0%, 35.3%)
CIE-LABlab(28.48, 47.90, -61.77)
CIE-LCHlch(28.48, 78.16, 307.79°)
OKLaboklab(40.5% 0.0601 -0.1776)
OKLCHoklch(40.5% 0.188 288.7)
XYZxyz(10.4631, 5.6388, 36.1271)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C26A5 #7FA526
analogous
#263FA5 #4C26A5 #8C26A5
triadic
#4C26A5 #A54C26 #26A54C
tetradic
#4C26A5 #A5263F #7FA526 #26A58C
square
#4C26A5 #A5263F #7FA526 #26A58C
split-complementary
#4C26A5 #A58C26 #3FA526
monochromatic
#1E0F42 #351B73 #4C26A5 #6537D1 #8C69DC

Accessibility & contrast

On white

9.87
#4C26A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4C26A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C26A5
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C26A5#FFFFFF#000000##FFFFFF
##4C26A51.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#0040A3
Tritanopia (blue-blind)
#294A64
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4c26a5;
/* rgb */ color: rgb(76, 38, 165);
/* oklch */ color: oklch(40.5% 0.188 288.7);
Tailwind
colors: {
  custom: {
    50: '#8865c1',
    500: '#4c26a5',
    950: '#000000',
  },
}
SCSS
$custom: #4c26a5;
$custom-light: #8865c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c26a5",
  "rgb": {
    "r": 76,
    "g": 38,
    "b": 165
  },
  "hsl": {
    "h": 257.953,
    "s": 62.562,
    "l": 39.804
  },
  "oklch": {
    "l": 0.405,
    "c": 0.18752,
    "h": 288.7
  },
  "luminance": 0.05639
}

Semantic roles & 50–950 ramp

primary
#4C26A5
secondary
#A6C364
accent
#E642B5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C26A5

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

Preview Lab → · Contrast checker → · Palette generator →

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