#4B187F#4B187F

#4B187F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.159 H 300.6°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#4B187F
RGBrgb(75, 24, 127)
HSLhsl(270, 68%, 30%)
HSVhsv(270, 81%, 50%)
CMYKcmyk(40.9%, 81.1%, 0%, 50.2%)
CIE-LABlab(22.59, 43.83, -47.93)
CIE-LCHlch(22.59, 64.95, 312.44°)
OKLaboklab(35.26% 0.0811 -0.137)
OKLCHoklch(35.26% 0.159 300.6)
XYZxyz(7.0581, 3.6814, 20.4133)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B187F #4C7F18
analogous
#18187F #4B187F #7F187F
triadic
#4B187F #7F4B18 #187F4B
tetradic
#4B187F #7F1818 #4C7F18 #187F7F
square
#4B187F #7F1818 #4C7F18 #187F7F
split-complementary
#4B187F #7F7F18 #187F18
monochromatic
#0F051A #2D0E4C #4B187F #6922B2 #8838D9

Accessibility & contrast

On white

12.10
#4B187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4B187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B187F
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B187F#FFFFFF#000000##FFFFFF
##4B187F1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#3F344B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4b187f;
/* rgb */ color: rgb(75, 24, 127);
/* oklch */ color: oklch(35.3% 0.159 300.6);
Tailwind
colors: {
  custom: {
    50: '#835ca5',
    500: '#4b187f',
    950: '#000000',
  },
}
SCSS
$custom: #4b187f;
$custom-light: #835ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#4b187f",
  "rgb": {
    "r": 75,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 269.709,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35264,
    "c": 0.15921,
    "h": 300.6
  },
  "luminance": 0.03681
}

Semantic roles & 50–950 ramp

primary
#4B187F
secondary
#7AB33F
accent
#EB3D95
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B187F

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

Preview Lab → · Contrast checker → · Palette generator →

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