#4B27BD#4B27BD

#4B27BD is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.9% C 0.214 H 283.7°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#4B27BD
RGBrgb(75, 39, 189)
HSLhsl(254, 66%, 45%)
HSVhsv(254, 79%, 74%)
CMYKcmyk(60.3%, 79.4%, 0%, 25.9%)
CIE-LABlab(30.93, 54.08, -72.08)
CIE-LCHlch(30.93, 90.12, 306.88°)
OKLaboklab(42.9% 0.0508 -0.2078)
OKLCHoklch(42.9% 0.214 283.7)
XYZxyz(12.8096, 6.6202, 48.7371)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B27BD #99BD27
analogous
#274EBD #4B27BD #9627BD
triadic
#4B27BD #BD4B27 #27BD4B
tetradic
#4B27BD #BD274E #99BD27 #27BD96
square
#4B27BD #BD274E #99BD27 #27BD96
split-complementary
#4B27BD #BD9627 #4EBD27
monochromatic
#231258 #371D8A #4B27BD #6B48D9 #947BE4

Accessibility & contrast

On white

9.04
#4B27BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4B27BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B27BD
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B27BD#FFFFFF#000000##FFFFFF
##4B27BD1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC1
Deuteranopia (green-blind)
#0044BA
Tritanopia (blue-blind)
#005472
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4b27bd;
/* rgb */ color: rgb(75, 39, 189);
/* oklch */ color: oklch(42.9% 0.214 283.7);
Tailwind
colors: {
  custom: {
    50: '#8b67d2',
    500: '#4b27bd',
    950: '#000000',
  },
}
SCSS
$custom: #4b27bd;
$custom-light: #8b67d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4b27bd",
  "rgb": {
    "r": 75,
    "g": 39,
    "b": 189
  },
  "hsl": {
    "h": 254.4,
    "s": 65.789,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42896,
    "c": 0.21394,
    "h": 283.7
  },
  "luminance": 0.06621
}

Semantic roles & 50–950 ramp

primary
#4B27BD
secondary
#B7CC74
accent
#E93FC0
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4B27BD

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

Preview Lab → · Contrast checker → · Palette generator →

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