#4F289D#4F289D

#4F289D is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.176 H 291.7°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#4F289D
RGBrgb(79, 40, 157)
HSLhsl(260, 59%, 39%)
HSVhsv(260, 75%, 62%)
CMYKcmyk(49.7%, 74.5%, 0%, 38.4%)
CIE-LABlab(28.42, 45.12, -57.01)
CIE-LCHlch(28.42, 72.70, 308.36°)
OKLaboklab(40.3% 0.0652 -0.1636)
OKLCHoklch(40.3% 0.176 291.7)
XYZxyz(10.0673, 5.6138, 32.4449)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F289D #769D28
analogous
#283B9D #4F289D #89289D
triadic
#4F289D #9D4F28 #289D4F
tetradic
#4F289D #9D283B #769D28 #289D89
square
#4F289D #9D283B #769D28 #289D89
split-complementary
#4F289D #9D8928 #3B9D28
monochromatic
#1E0F3B #361C6C #4F289D #6836CC #8D67D8

Accessibility & contrast

On white

9.89
#4F289D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4F289D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F289D
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F289D#FFFFFF#000000##FFFFFF
##4F289D1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#00419B
Tritanopia (blue-blind)
#364760
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4f289d;
/* rgb */ color: rgb(79, 40, 157);
/* oklch */ color: oklch(40.3% 0.176 291.7);
Tailwind
colors: {
  custom: {
    50: '#8866bb',
    500: '#4f289d',
    950: '#000000',
  },
}
SCSS
$custom: #4f289d;
$custom-light: #8866bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4f289d",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 157
  },
  "hsl": {
    "h": 260,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40304,
    "c": 0.17609,
    "h": 291.7
  },
  "luminance": 0.05614
}

Semantic roles & 50–950 ramp

primary
#4F289D
secondary
#A0BE62
accent
#E345AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F289D

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

Preview Lab → · Contrast checker → · Palette generator →

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