#4F278B#4F278B

#4F278B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.6% C 0.156 H 296.7°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#4F278B
RGBrgb(79, 39, 139)
HSLhsl(264, 56%, 35%)
HSVhsv(264, 72%, 55%)
CMYKcmyk(43.2%, 71.9%, 0%, 45.5%)
CIE-LABlab(26.67, 40.63, -48.78)
CIE-LCHlch(26.67, 63.48, 309.79°)
OKLaboklab(38.58% 0.07 -0.1394)
OKLCHoklch(38.58% 0.156 296.7)
XYZxyz(8.6089, 4.9772, 24.9282)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F278B #638B27
analogous
#27318B #4F278B #81278B
triadic
#4F278B #8B4F27 #278B4F
tetradic
#4F278B #8B2731 #638B27 #278B81
square
#4F278B #8B2731 #638B27 #278B81
split-complementary
#4F278B #8B8127 #318B27
monochromatic
#190C2B #341A5B #4F278B #6A34BB #8A5BD1

Accessibility & contrast

On white

10.52
#4F278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4F278B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F278B
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F278B#FFFFFF#000000##FFFFFF
##4F278B1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#3F4056
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4f278b;
/* rgb */ color: rgb(79, 39, 139);
/* oklch */ color: oklch(38.6% 0.156 296.7);
Tailwind
colors: {
  custom: {
    50: '#8665ae',
    500: '#4f278b',
    950: '#000000',
  },
}
SCSS
$custom: #4f278b;
$custom-light: #8665ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4f278b",
  "rgb": {
    "r": 79,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 264,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38581,
    "c": 0.15604,
    "h": 296.7
  },
  "luminance": 0.04977
}

Semantic roles & 50–950 ramp

primary
#4F278B
secondary
#90B658
accent
#DF48A3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4F278B

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

Preview Lab → · Contrast checker → · Palette generator →

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