#4B279E#4B279E

#4B279E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.178 H 289.5°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#4B279E
RGBrgb(75, 39, 158)
HSLhsl(258, 60%, 39%)
HSVhsv(258, 75%, 62%)
CMYKcmyk(52.5%, 75.3%, 0%, 38%)
CIE-LABlab(27.89, 45.27, -58.50)
CIE-LCHlch(27.89, 73.97, 307.73°)
OKLaboklab(39.85% 0.0597 -0.1681)
OKLCHoklch(39.85% 0.178 289.5)
XYZxyz(9.7969, 5.4151, 32.8701)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B279E #7A9E27
analogous
#273E9E #4B279E #86279E
triadic
#4B279E #9E4B27 #279E4B
tetradic
#4B279E #9E273E #7A9E27 #279E86
square
#4B279E #9E273E #7A9E27 #279E86
split-complementary
#4B279E #9E8627 #3E9E27
monochromatic
#1C0F3C #341B6D #4B279E #6335CD #8966D9

Accessibility & contrast

On white

10.08
#4B279E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4B279E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B279E
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B279E#FFFFFF#000000##FFFFFF
##4B279E1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#2C4761
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4b279e;
/* rgb */ color: rgb(75, 39, 158);
/* oklch */ color: oklch(39.9% 0.178 289.5);
Tailwind
colors: {
  custom: {
    50: '#8665bc',
    500: '#4b279e',
    950: '#000000',
  },
}
SCSS
$custom: #4b279e;
$custom-light: #8665bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4b279e",
  "rgb": {
    "r": 75,
    "g": 39,
    "b": 158
  },
  "hsl": {
    "h": 258.151,
    "s": 60.406,
    "l": 38.627
  },
  "oklch": {
    "l": 0.39854,
    "c": 0.17839,
    "h": 289.5
  },
  "luminance": 0.05416
}

Semantic roles & 50–950 ramp

primary
#4B279E
secondary
#A3BF62
accent
#E444B3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4B279E

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

Preview Lab → · Contrast checker → · Palette generator →

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