#4B18B4#4B18B4

#4B18B4 is a dark, highly saturated violet. Relative luminance 0.054; OKLCH L 40.6% C 0.215 H 286.7°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#4B18B4
RGBrgb(75, 24, 180)
HSLhsl(260, 76%, 40%)
HSVhsv(260, 87%, 71%)
CMYKcmyk(58.3%, 86.7%, 0%, 29.4%)
CIE-LABlab(27.96, 57.54, -71.64)
CIE-LCHlch(27.96, 91.89, 308.77°)
OKLaboklab(40.58% 0.0618 -0.2063)
OKLCHoklch(40.58% 0.215 286.7)
XYZxyz(11.4640, 5.4437, 43.6178)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B18B4 #81B418
analogous
#1833B4 #4B18B4 #9918B4
triadic
#4B18B4 #B44B18 #18B44B
tetradic
#4B18B4 #B41833 #81B418 #18B499
square
#4B18B4 #B41833 #81B418 #18B499
split-complementary
#4B18B4 #B49918 #33B418
monochromatic
#1E0A48 #34117E #4B18B4 #6427E2 #8B5DE9

Accessibility & contrast

On white

10.05
#4B18B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4B18B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B18B4
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B18B4#FFFFFF#000000##FFFFFF
##4B18B41.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B8
Deuteranopia (green-blind)
#003EB1
Tritanopia (blue-blind)
#124B6A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4b18b4;
/* rgb */ color: rgb(75, 24, 180);
/* oklch */ color: oklch(40.6% 0.215 286.7);
Tailwind
colors: {
  custom: {
    50: '#8b5fcc',
    500: '#4b18b4',
    950: '#000000',
  },
}
SCSS
$custom: #4b18b4;
$custom-light: #8b5fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4b18b4",
  "rgb": {
    "r": 75,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 259.615,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.40576,
    "c": 0.21536,
    "h": 286.7
  },
  "luminance": 0.05444
}

Semantic roles & 50–950 ramp

primary
#4B18B4
secondary
#A8CD5B
accent
#F335B5
background
#F9F5FC
surface
#F1EAF9
border
#CBC6D2
text
#0D0514
muted
#7E7982

Preview Lab

Preview with #4B18B4

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

Preview Lab → · Contrast checker → · Palette generator →

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