#4A289B#4A289B

#4A289B is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.174 H 289.5°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#4A289B
RGBrgb(74, 40, 155)
HSLhsl(258, 59%, 38%)
HSVhsv(258, 74%, 61%)
CMYKcmyk(52.3%, 74.2%, 0%, 39.2%)
CIE-LABlab(27.68, 43.74, -57.01)
CIE-LCHlch(27.68, 71.86, 307.50°)
OKLaboklab(39.6% 0.0581 -0.1638)
OKLCHoklch(39.6% 0.174 289.5)
XYZxyz(9.4975, 5.3396, 31.5342)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A289B #799B28
analogous
#283F9B #4A289B #83289B
triadic
#4A289B #9B4A28 #289B4A
tetradic
#4A289B #9B283F #799B28 #289B83
square
#4A289B #9B283F #799B28 #289B83
split-complementary
#4A289B #9B8328 #3F9B28
monochromatic
#1C0F3A #331B6A #4A289B #6235CB #8766D7

Accessibility & contrast

On white

10.15
#4A289B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4A289B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A289B
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A289B#FFFFFF#000000##FFFFFF
##4A289B1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a289b;
/* rgb */ color: rgb(74, 40, 155);
/* oklch */ color: oklch(39.6% 0.174 289.5);
Tailwind
colors: {
  custom: {
    50: '#8565b9',
    500: '#4a289b',
    950: '#000000',
  },
}
SCSS
$custom: #4a289b;
$custom-light: #8565b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a289b",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 155
  },
  "hsl": {
    "h": 257.739,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.396,
    "c": 0.17376,
    "h": 289.5
  },
  "luminance": 0.0534
}

Semantic roles & 50–950 ramp

primary
#4A289B
secondary
#A2BD61
accent
#E246B4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A289B

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

Preview Lab → · Contrast checker → · Palette generator →

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