#4F279F#4F279F

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

Color values

HEX#4F279F
RGBrgb(79, 39, 159)
HSLhsl(260, 61%, 39%)
HSVhsv(260, 75%, 62%)
CMYKcmyk(50.3%, 75.5%, 0%, 37.6%)
CIE-LABlab(28.42, 46.18, -58.21)
CIE-LCHlch(28.42, 74.30, 308.42°)
OKLaboklab(40.36% 0.0655 -0.1671)
OKLCHoklch(40.36% 0.18 291.4)
XYZxyz(10.2062, 5.6161, 33.3404)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F279F #779F27
analogous
#273B9F #4F279F #8B279F
triadic
#4F279F #9F4F27 #279F4F
tetradic
#4F279F #9F273B #779F27 #279F8B
square
#4F279F #9F273B #779F27 #279F8B
split-complementary
#4F279F #9F8B27 #3B9F27
monochromatic
#1E0F3D #371B6E #4F279F #6836CE #8D67DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4F279F#FFFFFF#000000##FFFFFF
##4F279F1.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)
#0045A2
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#344861
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4f279f;
/* rgb */ color: rgb(79, 39, 159);
/* oklch */ color: oklch(40.4% 0.179 291.4);
Tailwind
colors: {
  custom: {
    50: '#8965bc',
    500: '#4f279f',
    950: '#000000',
  },
}
SCSS
$custom: #4f279f;
$custom-light: #8965bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f279f",
  "rgb": {
    "r": 79,
    "g": 39,
    "b": 159
  },
  "hsl": {
    "h": 260,
    "s": 60.606,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40364,
    "c": 0.1795,
    "h": 291.4
  },
  "luminance": 0.05617
}

Semantic roles & 50–950 ramp

primary
#4F279F
secondary
#A0C062
accent
#E444AF
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F279F

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

Preview Lab → · Contrast checker → · Palette generator →

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