#4F278E#4F278E

#4F278E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.160 H 295.8°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#4F278E
RGBrgb(79, 39, 142)
HSLhsl(263, 57%, 35%)
HSVhsv(263, 73%, 56%)
CMYKcmyk(44.4%, 72.5%, 0%, 44.3%)
CIE-LABlab(26.92, 41.45, -50.23)
CIE-LCHlch(26.92, 65.13, 309.53°)
OKLaboklab(38.84% 0.0695 -0.1437)
OKLCHoklch(38.84% 0.16 295.8)
XYZxyz(8.8312, 5.0661, 26.0985)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F278E #668E27
analogous
#27328E #4F278E #82278E
triadic
#4F278E #8E4F27 #278E4F
tetradic
#4F278E #8E2732 #668E27 #278E82
square
#4F278E #8E2732 #668E27 #278E82
split-complementary
#4F278E #8E8227 #328E27
monochromatic
#1A0D2E #341A5E #4F278E #6A34BE #8B5DD2

Accessibility & contrast

On white

10.43
#4F278E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4F278E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F278E
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F278E#FFFFFF#000000##FFFFFF
##4F278E1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#3E4158
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f278e;
/* rgb */ color: rgb(79, 39, 142);
/* oklch */ color: oklch(38.8% 0.160 295.8);
Tailwind
colors: {
  custom: {
    50: '#8665b0',
    500: '#4f278e',
    950: '#000000',
  },
}
SCSS
$custom: #4f278e;
$custom-light: #8665b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f278e",
  "rgb": {
    "r": 79,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 263.301,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.3884,
    "c": 0.1596,
    "h": 295.8
  },
  "luminance": 0.05066
}

Semantic roles & 50–950 ramp

primary
#4F278E
secondary
#93B859
accent
#E048A5
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F278E

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

Preview Lab → · Contrast checker → · Palette generator →

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