#4F279E#4F279E

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

Color values

HEX#4F279E
RGBrgb(79, 39, 158)
HSLhsl(260, 60%, 39%)
HSVhsv(260, 75%, 62%)
CMYKcmyk(50%, 75.3%, 0%, 38%)
CIE-LABlab(28.33, 45.90, -57.75)
CIE-LCHlch(28.33, 73.77, 308.48°)
OKLaboklab(40.27% 0.0658 -0.1658)
OKLCHoklch(40.27% 0.178 291.6)
XYZxyz(10.1198, 5.5815, 32.8853)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F279E #769E27
analogous
#273A9E #4F279E #8A279E
triadic
#4F279E #9E4F27 #279E4F
tetradic
#4F279E #9E273A #769E27 #279E8A
square
#4F279E #9E273A #769E27 #279E8A
split-complementary
#4F279E #9E8A27 #3A9E27
monochromatic
#1E0F3C #361B6D #4F279E #6835CD #8D66D9

Accessibility & contrast

On white

9.92
#4F279E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F279E
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F279E#FFFFFF#000000##FFFFFF
##4F279E1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#354761
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4f279e;
/* rgb */ color: rgb(79, 39, 158);
/* oklch */ color: oklch(40.3% 0.178 291.6);
Tailwind
colors: {
  custom: {
    50: '#8965bc',
    500: '#4f279e',
    950: '#000000',
  },
}
SCSS
$custom: #4f279e;
$custom-light: #8965bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f279e",
  "rgb": {
    "r": 79,
    "g": 39,
    "b": 158
  },
  "hsl": {
    "h": 260.168,
    "s": 60.406,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40271,
    "c": 0.17835,
    "h": 291.6
  },
  "luminance": 0.05582
}

Semantic roles & 50–950 ramp

primary
#4F279E
secondary
#A0BF62
accent
#E444AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F279E

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

Preview Lab → · Contrast checker → · Palette generator →

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