#4F287A#4F287A

#4F287A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.3% C 0.134 H 302.1°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#4F287A
RGBrgb(79, 40, 122)
HSLhsl(269, 51%, 32%)
HSVhsv(269, 67%, 48%)
CMYKcmyk(35.2%, 67.2%, 0%, 52.2%)
CIE-LABlab(25.52, 35.46, -39.98)
CIE-LCHlch(25.52, 53.44, 311.57°)
OKLaboklab(37.33% 0.0714 -0.1136)
OKLCHoklch(37.33% 0.134 302.1)
XYZxyz(7.4953, 4.5850, 18.8987)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F287A #537A28
analogous
#282A7A #4F287A #78287A
triadic
#4F287A #7A4F28 #287A4F
tetradic
#4F287A #7A282A #537A28 #287A78
square
#4F287A #7A282A #537A28 #287A78
split-complementary
#4F287A #7A7828 #2A7A28
monochromatic
#130A1E #31194C #4F287A #6D37A8 #8B55C7

Accessibility & contrast

On white

10.95
#4F287A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4F287A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F287A
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F287A#FFFFFF#000000##FFFFFF
##4F287A1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7D
Deuteranopia (green-blind)
#093C78
Tritanopia (blue-blind)
#463A4D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4f287a;
/* rgb */ color: rgb(79, 40, 122);
/* oklch */ color: oklch(37.3% 0.134 302.1);
Tailwind
colors: {
  custom: {
    50: '#8464a1',
    500: '#4f287a',
    950: '#000000',
  },
}
SCSS
$custom: #4f287a;
$custom-light: #8464a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f287a",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 122
  },
  "hsl": {
    "h": 268.537,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37332,
    "c": 0.13412,
    "h": 302.1
  },
  "luminance": 0.04585
}

Semantic roles & 50–950 ramp

primary
#4F287A
secondary
#81AC52
accent
#DA4E97
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4F287A

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

Preview Lab → · Contrast checker → · Palette generator →

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