#4C26B6#4C26B6

#4C26B6 is a dark, highly saturated violet. Relative luminance 0.063; OKLCH L 42.2% C 0.207 H 285.4°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#4C26B6
RGBrgb(76, 38, 182)
HSLhsl(256, 65%, 43%)
HSVhsv(256, 79%, 71%)
CMYKcmyk(58.2%, 79.1%, 0%, 28.6%)
CIE-LABlab(30.16, 52.68, -69.20)
CIE-LCHlch(30.16, 86.97, 307.28°)
OKLaboklab(42.17% 0.0551 -0.1994)
OKLCHoklch(42.17% 0.207 285.4)
XYZxyz(12.1145, 6.2994, 44.8244)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C26B6 #90B626
analogous
#2648B6 #4C26B6 #9426B6
triadic
#4C26B6 #B64C26 #26B64C
tetradic
#4C26B6 #B62648 #90B626 #26B694
square
#4C26B6 #B62648 #90B626 #26B694
split-complementary
#4C26B6 #B69426 #48B626
monochromatic
#221151 #371B83 #4C26B6 #6942D7 #9174E2

Accessibility & contrast

On white

9.29
#4C26B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4C26B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C26B6
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C26B6#FFFFFF#000000##FFFFFF
##4C26B61.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBA
Deuteranopia (green-blind)
#0043B3
Tritanopia (blue-blind)
#11516E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4c26b6;
/* rgb */ color: rgb(76, 38, 182);
/* oklch */ color: oklch(42.2% 0.207 285.4);
Tailwind
colors: {
  custom: {
    50: '#8b66cd',
    500: '#4c26b6',
    950: '#000000',
  },
}
SCSS
$custom: #4c26b6;
$custom-light: #8b66cd;
$custom-dark: #000000;
JSON
{
  "hex": "#4c26b6",
  "rgb": {
    "r": 76,
    "g": 38,
    "b": 182
  },
  "hsl": {
    "h": 255.833,
    "s": 65.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42171,
    "c": 0.20684,
    "h": 285.4
  },
  "luminance": 0.063
}

Semantic roles & 50–950 ramp

primary
#4C26B6
secondary
#B1C96E
accent
#E83FBC
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4C26B6

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

Preview Lab → · Contrast checker → · Palette generator →

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