#4B187C#4B187C

#4B187C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.156 H 301.7°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#4B187C
RGBrgb(75, 24, 124)
HSLhsl(271, 68%, 29%)
HSVhsv(271, 81%, 49%)
CMYKcmyk(39.5%, 80.6%, 0%, 51.4%)
CIE-LABlab(22.32, 43.07, -46.47)
CIE-LCHlch(22.32, 63.36, 312.82°)
OKLaboklab(34.99% 0.082 -0.1327)
OKLCHoklch(34.99% 0.156 301.7)
XYZxyz(6.8655, 3.6043, 19.3989)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B187C #497C18
analogous
#19187C #4B187C #7C187B
triadic
#4B187C #7C4B18 #187C4B
tetradic
#4B187C #7C1918 #497C18 #187B7C
square
#4B187C #7C1918 #497C18 #187B7C
split-complementary
#4B187C #7B7C18 #187C19
monochromatic
#10051A #2C0E49 #4B187C #6A22AF #8936D8

Accessibility & contrast

On white

12.20
#4B187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4B187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B187C
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B187C#FFFFFF#000000##FFFFFF
##4B187C1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#40334A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4b187c;
/* rgb */ color: rgb(75, 24, 124);
/* oklch */ color: oklch(35.0% 0.156 301.7);
Tailwind
colors: {
  custom: {
    50: '#835ba3',
    500: '#4b187c',
    950: '#000000',
  },
}
SCSS
$custom: #4b187c;
$custom-light: #835ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#4b187c",
  "rgb": {
    "r": 75,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 270.6,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3499,
    "c": 0.15599,
    "h": 301.7
  },
  "luminance": 0.03604
}

Semantic roles & 50–950 ramp

primary
#4B187C
secondary
#77B13F
accent
#EA3D92
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B187C

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

Preview Lab → · Contrast checker → · Palette generator →

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