#4F278D#4F278D

#4F278D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.158 H 296.1°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#4F278D
RGBrgb(79, 39, 141)
HSLhsl(264, 57%, 35%)
HSVhsv(264, 72%, 55%)
CMYKcmyk(44%, 72.3%, 0%, 44.7%)
CIE-LABlab(26.84, 41.18, -49.75)
CIE-LCHlch(26.84, 64.58, 309.61°)
OKLaboklab(38.75% 0.0697 -0.1423)
OKLCHoklch(38.75% 0.158 296.1)
XYZxyz(8.7564, 5.0362, 25.7049)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F278D #658D27
analogous
#27328D #4F278D #82278D
triadic
#4F278D #8D4F27 #278D4F
tetradic
#4F278D #8D2732 #658D27 #278D82
square
#4F278D #8D2732 #658D27 #278D82
split-complementary
#4F278D #8D8227 #328D27
monochromatic
#190C2D #341A5D #4F278D #6A34BD #8B5CD2

Accessibility & contrast

On white

10.46
#4F278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F278D
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F278D#FFFFFF#000000##FFFFFF
##4F278D1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#3F4157
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4f278d;
/* rgb */ color: rgb(79, 39, 141);
/* oklch */ color: oklch(38.8% 0.158 296.1);
Tailwind
colors: {
  custom: {
    50: '#8665af',
    500: '#4f278d',
    950: '#000000',
  },
}
SCSS
$custom: #4f278d;
$custom-light: #8665af;
$custom-dark: #000000;
JSON
{
  "hex": "#4f278d",
  "rgb": {
    "r": 79,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 263.529,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38753,
    "c": 0.15841,
    "h": 296.1
  },
  "luminance": 0.05036
}

Semantic roles & 50–950 ramp

primary
#4F278D
secondary
#92B759
accent
#E048A4
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4F278D

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

Preview Lab → · Contrast checker → · Palette generator →

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