#4F279D#4F279D

#4F279D is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.177 H 291.9°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#4F279D
RGBrgb(79, 39, 157)
HSLhsl(260, 60%, 38%)
HSVhsv(260, 75%, 62%)
CMYKcmyk(49.7%, 75.2%, 0%, 38.4%)
CIE-LABlab(28.24, 45.62, -57.29)
CIE-LCHlch(28.24, 73.24, 308.53°)
OKLaboklab(40.18% 0.066 -0.1644)
OKLCHoklch(40.18% 0.177 291.9)
XYZxyz(10.0341, 5.5473, 32.4338)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F279D #759D27
analogous
#273A9D #4F279D #8A279D
triadic
#4F279D #9D4F27 #279D4F
tetradic
#4F279D #9D273A #759D27 #279D8A
square
#4F279D #9D273A #759D27 #279D8A
split-complementary
#4F279D #9D8A27 #3A9D27
monochromatic
#1E0F3B #361B6C #4F279D #6835CD #8D66D9

Accessibility & contrast

On white

9.95
#4F279D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4F279D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F279D
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F279D#FFFFFF#000000##FFFFFF
##4F279D1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f279d;
/* rgb */ color: rgb(79, 39, 157);
/* oklch */ color: oklch(40.2% 0.177 291.9);
Tailwind
colors: {
  custom: {
    50: '#8865bb',
    500: '#4f279d',
    950: '#000000',
  },
}
SCSS
$custom: #4f279d;
$custom-light: #8865bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4f279d",
  "rgb": {
    "r": 79,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 260.339,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40179,
    "c": 0.17719,
    "h": 291.9
  },
  "luminance": 0.05548
}

Semantic roles & 50–950 ramp

primary
#4F279D
secondary
#9FBF61
accent
#E344AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F279D

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

Preview Lab → · Contrast checker → · Palette generator →

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