#4F279A#4F279A

#4F279A is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.174 H 292.6°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#4F279A
RGBrgb(79, 39, 154)
HSLhsl(261, 60%, 38%)
HSVhsv(261, 75%, 60%)
CMYKcmyk(48.7%, 74.7%, 0%, 39.6%)
CIE-LABlab(27.97, 44.78, -55.91)
CIE-LCHlch(27.97, 71.63, 308.70°)
OKLaboklab(39.91% 0.0668 -0.1604)
OKLCHoklch(39.91% 0.174 292.6)
XYZxyz(9.7811, 5.4461, 31.1014)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F279A #729A27
analogous
#27389A #4F279A #89279A
triadic
#4F279A #9A4F27 #279A4F
tetradic
#4F279A #9A2738 #729A27 #279A89
square
#4F279A #9A2738 #729A27 #279A89
split-complementary
#4F279A #9A8927 #389A27
monochromatic
#1D0E38 #361B69 #4F279A #6833CB #8C64D8

Accessibility & contrast

On white

10.05
#4F279A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4F279A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F279A
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F279A#FFFFFF#000000##FFFFFF
##4F279A1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#004098
Tritanopia (blue-blind)
#37465E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4f279a;
/* rgb */ color: rgb(79, 39, 154);
/* oklch */ color: oklch(39.9% 0.174 292.6);
Tailwind
colors: {
  custom: {
    50: '#8865b9',
    500: '#4f279a',
    950: '#000000',
  },
}
SCSS
$custom: #4f279a;
$custom-light: #8865b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4f279a",
  "rgb": {
    "r": 79,
    "g": 39,
    "b": 154
  },
  "hsl": {
    "h": 260.87,
    "s": 59.585,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39905,
    "c": 0.17371,
    "h": 292.6
  },
  "luminance": 0.05446
}

Semantic roles & 50–950 ramp

primary
#4F279A
secondary
#9DBD5F
accent
#E345AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F279A

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

Preview Lab → · Contrast checker → · Palette generator →

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