#4F278F#4F278F

#4F278F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.161 H 295.5°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#4F278F
RGBrgb(79, 39, 143)
HSLhsl(263, 57%, 36%)
HSVhsv(263, 73%, 56%)
CMYKcmyk(44.8%, 72.7%, 0%, 43.9%)
CIE-LABlab(27.01, 41.73, -50.71)
CIE-LCHlch(27.01, 65.67, 309.45°)
OKLaboklab(38.93% 0.0693 -0.1451)
OKLCHoklch(38.93% 0.161 295.5)
XYZxyz(8.9066, 5.0963, 26.4957)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F278F #678F27
analogous
#27338F #4F278F #83278F
triadic
#4F278F #8F4F27 #278F4F
tetradic
#4F278F #8F2733 #678F27 #278F83
square
#4F278F #8F2733 #678F27 #278F83
split-complementary
#4F278F #8F8327 #338F27
monochromatic
#1A0D2F #341A5F #4F278F #6A34BF #8B5DD3

Accessibility & contrast

On white

10.40
#4F278F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4F278F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F278F
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F278F#FFFFFF#000000##FFFFFF
##4F278F1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f278f;
/* rgb */ color: rgb(79, 39, 143);
/* oklch */ color: oklch(38.9% 0.161 295.5);
Tailwind
colors: {
  custom: {
    50: '#8665b1',
    500: '#4f278f',
    950: '#000000',
  },
}
SCSS
$custom: #4f278f;
$custom-light: #8665b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f278f",
  "rgb": {
    "r": 79,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 263.077,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38927,
    "c": 0.16079,
    "h": 295.5
  },
  "luminance": 0.05096
}

Semantic roles & 50–950 ramp

primary
#4F278F
secondary
#94B85A
accent
#E047A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F278F

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

Preview Lab → · Contrast checker → · Palette generator →

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