#4B187E#4B187E

#4B187E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.158 H 301.0°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#4B187E
RGBrgb(75, 24, 126)
HSLhsl(270, 68%, 29%)
HSVhsv(270, 81%, 49%)
CMYKcmyk(40.5%, 81%, 0%, 50.6%)
CIE-LABlab(22.50, 43.58, -47.45)
CIE-LCHlch(22.50, 64.42, 312.56°)
OKLaboklab(35.17% 0.0814 -0.1356)
OKLCHoklch(35.17% 0.158 301)
XYZxyz(6.9933, 3.6554, 20.0718)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B187E #4B7E18
analogous
#18187E #4B187E #7E187E
triadic
#4B187E #7E4B18 #187E4B
tetradic
#4B187E #7E1818 #4B7E18 #187E7E
square
#4B187E #7E1818 #4B7E18 #187E7E
split-complementary
#4B187E #7E7E18 #187E18
monochromatic
#0F051A #2C0E4B #4B187E #6A22B1 #8837D9

Accessibility & contrast

On white

12.13
#4B187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4B187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B187E
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B187E#FFFFFF#000000##FFFFFF
##4B187E1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b187e;
/* rgb */ color: rgb(75, 24, 126);
/* oklch */ color: oklch(35.2% 0.158 301.0);
Tailwind
colors: {
  custom: {
    50: '#835ca4',
    500: '#4b187e',
    950: '#000000',
  },
}
SCSS
$custom: #4b187e;
$custom-light: #835ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#4b187e",
  "rgb": {
    "r": 75,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 270,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35172,
    "c": 0.15814,
    "h": 301
  },
  "luminance": 0.03655
}

Semantic roles & 50–950 ramp

primary
#4B187E
secondary
#79B23F
accent
#EB3D94
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B187E

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

Preview Lab → · Contrast checker → · Palette generator →

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