#4B289F#4B289F

#4B289F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.178 H 289.2°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#4B289F
RGBrgb(75, 40, 159)
HSLhsl(258, 60%, 39%)
HSVhsv(258, 75%, 62%)
CMYKcmyk(52.8%, 74.8%, 0%, 37.6%)
CIE-LABlab(28.16, 45.05, -58.66)
CIE-LCHlch(28.16, 73.97, 307.52°)
OKLaboklab(40.07% 0.0586 -0.1686)
OKLCHoklch(40.07% 0.178 289.2)
XYZxyz(9.9166, 5.5162, 33.3364)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B289F #7C9F28
analogous
#28419F #4B289F #87289F
triadic
#4B289F #9F4B28 #289F4B
tetradic
#4B289F #9F2841 #7C9F28 #289F87
square
#4B289F #9F2841 #7C9F28 #289F87
split-complementary
#4B289F #9F8728 #419F28
monochromatic
#1D0F3D #341C6E #4B289F #6337CD #8968D9

Accessibility & contrast

On white

9.98
#4B289F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4B289F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B289F
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B289F#FFFFFF#000000##FFFFFF
##4B289F1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#2C4861
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4b289f;
/* rgb */ color: rgb(75, 40, 159);
/* oklch */ color: oklch(40.1% 0.178 289.2);
Tailwind
colors: {
  custom: {
    50: '#8666bc',
    500: '#4b289f',
    950: '#000000',
  },
}
SCSS
$custom: #4b289f;
$custom-light: #8666bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4b289f",
  "rgb": {
    "r": 75,
    "g": 40,
    "b": 159
  },
  "hsl": {
    "h": 257.647,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40074,
    "c": 0.17848,
    "h": 289.2
  },
  "luminance": 0.05517
}

Semantic roles & 50–950 ramp

primary
#4B289F
secondary
#A4BF64
accent
#E345B4
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4B289F

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

Preview Lab → · Contrast checker → · Palette generator →

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