#4B289B#4B289B

#4B289B is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.7% C 0.174 H 290.0°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#4B289B
RGBrgb(75, 40, 155)
HSLhsl(258, 59%, 38%)
HSVhsv(258, 74%, 61%)
CMYKcmyk(51.6%, 74.2%, 0%, 39.2%)
CIE-LABlab(27.79, 43.90, -56.83)
CIE-LCHlch(27.79, 71.81, 307.69°)
OKLaboklab(39.7% 0.0596 -0.1632)
OKLCHoklch(39.7% 0.174 290)
XYZxyz(9.5751, 5.3796, 31.5378)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B289B #789B28
analogous
#283E9B #4B289B #84289B
triadic
#4B289B #9B4B28 #289B4B
tetradic
#4B289B #9B283E #789B28 #289B84
square
#4B289B #9B283E #789B28 #289B84
split-complementary
#4B289B #9B8428 #3E9B28
monochromatic
#1C0F3A #331B6A #4B289B #6335CB #8866D7

Accessibility & contrast

On white

10.12
#4B289B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B289B
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B289B#FFFFFF#000000##FFFFFF
##4B289B1.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#003F99
Tritanopia (blue-blind)
#2F475F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4b289b;
/* rgb */ color: rgb(75, 40, 155);
/* oklch */ color: oklch(39.7% 0.174 290.0);
Tailwind
colors: {
  custom: {
    50: '#8665b9',
    500: '#4b289b',
    950: '#000000',
  },
}
SCSS
$custom: #4b289b;
$custom-light: #8665b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4b289b",
  "rgb": {
    "r": 75,
    "g": 40,
    "b": 155
  },
  "hsl": {
    "h": 258.261,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39702,
    "c": 0.17374,
    "h": 290
  },
  "luminance": 0.0538
}

Semantic roles & 50–950 ramp

primary
#4B289B
secondary
#A1BD61
accent
#E246B3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4B289B

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

Preview Lab → · Contrast checker → · Palette generator →

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