#4F289F#4F289F

#4F289F is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.178 H 291.3°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#4F289F
RGBrgb(79, 40, 159)
HSLhsl(260, 60%, 39%)
HSVhsv(260, 75%, 62%)
CMYKcmyk(50.3%, 74.8%, 0%, 37.6%)
CIE-LABlab(28.60, 45.68, -57.93)
CIE-LCHlch(28.60, 73.77, 308.26°)
OKLaboklab(40.49% 0.0647 -0.1663)
OKLCHoklch(40.49% 0.178 291.3)
XYZxyz(10.2395, 5.6827, 33.3515)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F289F #789F28
analogous
#283D9F #4F289F #8B289F
triadic
#4F289F #9F4F28 #289F4F
tetradic
#4F289F #9F283D #789F28 #289F8B
square
#4F289F #9F283D #789F28 #289F8B
split-complementary
#4F289F #9F8B28 #3D9F28
monochromatic
#1E0F3D #371C6E #4F289F #6837CD #8D68D9

Accessibility & contrast

On white

9.83
#4F289F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4F289F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F289F
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F289F#FFFFFF#000000##FFFFFF
##4F289F1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#344861
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4f289f;
/* rgb */ color: rgb(79, 40, 159);
/* oklch */ color: oklch(40.5% 0.178 291.3);
Tailwind
colors: {
  custom: {
    50: '#8966bc',
    500: '#4f289f',
    950: '#000000',
  },
}
SCSS
$custom: #4f289f;
$custom-light: #8966bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f289f",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 159
  },
  "hsl": {
    "h": 259.664,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40487,
    "c": 0.17842,
    "h": 291.3
  },
  "luminance": 0.05683
}

Semantic roles & 50–950 ramp

primary
#4F289F
secondary
#A1BF64
accent
#E345AF
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F289F

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

Preview Lab → · Contrast checker → · Palette generator →

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