#4B18A1#4B18A1

#4B18A1 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.6% C 0.195 H 290.7°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#4B18A1
RGBrgb(75, 24, 161)
HSLhsl(262, 74%, 36%)
HSVhsv(262, 85%, 63%)
CMYKcmyk(53.4%, 85.1%, 0%, 36.9%)
CIE-LABlab(25.93, 52.61, -63.55)
CIE-LCHlch(25.93, 82.50, 309.62°)
OKLaboklab(38.58% 0.0692 -0.1827)
OKLCHoklch(38.58% 0.195 290.7)
XYZxyz(9.6595, 4.7219, 34.1138)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B18A1 #6EA118
analogous
#182AA1 #4B18A1 #9018A1
triadic
#4B18A1 #A14B18 #18A14B
tetradic
#4B18A1 #A1182A #6EA118 #18A190
square
#4B18A1 #A1182A #6EA118 #18A190
split-complementary
#4B18A1 #A19018 #2AA118
monochromatic
#190836 #32106C #4B18A1 #6420D6 #874FE5

Accessibility & contrast

On white

10.80
#4B18A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4B18A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B18A1
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B18A1#FFFFFF#000000##FFFFFF
##4B18A11.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A5
Deuteranopia (green-blind)
#003A9F
Tritanopia (blue-blind)
#2B435F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4b18a1;
/* rgb */ color: rgb(75, 24, 161);
/* oklch */ color: oklch(38.6% 0.195 290.7);
Tailwind
colors: {
  custom: {
    50: '#885ebe',
    500: '#4b18a1',
    950: '#000000',
  },
}
SCSS
$custom: #4b18a1;
$custom-light: #885ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#4b18a1",
  "rgb": {
    "r": 75,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 262.336,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38582,
    "c": 0.1954,
    "h": 290.7
  },
  "luminance": 0.04722
}

Semantic roles & 50–950 ramp

primary
#4B18A1
secondary
#9AC74E
accent
#F137AC
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0D0512
muted
#7D7981

Preview Lab

Preview with #4B18A1

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

Preview Lab → · Contrast checker → · Palette generator →

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